aboutsummaryrefslogtreecommitdiffstats
path: root/common/rfb/CConnection.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'common/rfb/CConnection.cxx')
-rw-r--r--common/rfb/CConnection.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/rfb/CConnection.cxx b/common/rfb/CConnection.cxx
index 36778f02..59955696 100644
--- a/common/rfb/CConnection.cxx
+++ b/common/rfb/CConnection.cxx
@@ -234,7 +234,7 @@ void CConnection::processSecurityResultMsg()
}
CharArray reason;
if (cp.beforeVersion(3,8))
- reason.buf = strDup("Authentication failure");
+ reason.buf = safe_strdup("Authentication failure");
else
reason.buf = is->readString();
state_ = RFBSTATE_INVALID;