diff options
Diffstat (limited to 'common/rfb/VNCServerST.cxx')
-rw-r--r-- | common/rfb/VNCServerST.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/common/rfb/VNCServerST.cxx b/common/rfb/VNCServerST.cxx index a21526ad..5be63969 100644 --- a/common/rfb/VNCServerST.cxx +++ b/common/rfb/VNCServerST.cxx @@ -74,7 +74,7 @@ static SSecurityFactoryStandard defaultSecurityFactory; VNCServerST::VNCServerST(const char* name_, SDesktop* desktop_, SSecurityFactory* sf) : blHosts(&blacklist), desktop(desktop_), desktopStarted(false), pb(0), - name(strDup(name_)), pointerClient(0), comparer(0), + name(safe_strdup(name_)), pointerClient(0), comparer(0), renderedCursorInvalid(false), securityFactory(sf ? sf : &defaultSecurityFactory), queryConnectionHandler(0), keyRemapper(&KeyRemapper::defInstance), @@ -363,7 +363,7 @@ void VNCServerST::serverCutText(const char* str, int len) void VNCServerST::setName(const char* name_) { - name.replaceBuf(strDup(name_)); + name.replaceBuf(safe_strdup(name_)); std::list<VNCSConnectionST*>::iterator ci, ci_next; for (ci = clients.begin(); ci != clients.end(); ci = ci_next) { ci_next = ci; ci_next++; |