summaryrefslogtreecommitdiffstats
path: root/common/rfb/ConnParams.cxx
diff options
context:
space:
mode:
authorAdam Tkac <atkac@redhat.com>2009-09-04 10:16:58 +0000
committerAdam Tkac <atkac@redhat.com>2009-09-04 10:16:58 +0000
commit97abe8a548ff9ca940d568128b21813b8a253872 (patch)
treed38ea6a539b2cc4e70d9569e71985914818546cd /common/rfb/ConnParams.cxx
parent8ed9009b4c4f497a95114d878334de3e13457bdd (diff)
downloadtigervnc-97abe8a548ff9ca940d568128b21813b8a253872.tar.gz
tigervnc-97abe8a548ff9ca940d568128b21813b8a253872.zip
Replace rfb::strDup by safe_strdup and remove rfb::strFree in favor of free()
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@3889 3789f03b-4d11-0410-bbf8-ca57d06f2519
Diffstat (limited to 'common/rfb/ConnParams.cxx')
-rw-r--r--common/rfb/ConnParams.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/rfb/ConnParams.cxx b/common/rfb/ConnParams.cxx
index 7b27a734..4bbd2cbe 100644
--- a/common/rfb/ConnParams.cxx
+++ b/common/rfb/ConnParams.cxx
@@ -82,7 +82,7 @@ void ConnParams::setPF(const PixelFormat& pf)
void ConnParams::setName(const char* name)
{
delete [] name_;
- name_ = strDup(name);
+ name_ = safe_strdup(name);
}
void ConnParams::setEncodings(int nEncodings, const rdr::U32* encodings)