diff options
Diffstat (limited to 'common/rfb/CConnection.h')
-rw-r--r-- | common/rfb/CConnection.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/rfb/CConnection.h b/common/rfb/CConnection.h index 79110eb9..b3fd093f 100644 --- a/common/rfb/CConnection.h +++ b/common/rfb/CConnection.h @@ -47,7 +47,7 @@ namespace rfb { // which we are connected. This might be the result of getPeerEndpoint on // a TcpSocket, for example, or a host specified by DNS name & port. // The serverName is used when verifying the Identity of a host (see RA2). - void setServerName(const char* name_) { serverName.replaceBuf(strDup(name_)); } + void setServerName(const char* name_) { serverName.replaceBuf(safe_strdup(name_)); } // setStreams() sets the streams to be used for the connection. These must // be set before initialiseProtocol() and processMsg() are called. The |