aboutsummaryrefslogtreecommitdiffstats
path: root/common/rfb
diff options
context:
space:
mode:
Diffstat (limited to 'common/rfb')
-rw-r--r--common/rfb/CSecurityTLS.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/common/rfb/CSecurityTLS.cxx b/common/rfb/CSecurityTLS.cxx
index a8ef779d..c702280d 100644
--- a/common/rfb/CSecurityTLS.cxx
+++ b/common/rfb/CSecurityTLS.cxx
@@ -82,7 +82,7 @@ static const char* homedirfn(const char* fn)
if (homedir == NULL)
return "";
- snprintf(full_path, sizeof(full_path), "%s%s", homedir, fn);
+ snprintf(full_path, sizeof(full_path), "%s/%s", homedir, fn);
return full_path;
}
@@ -395,8 +395,8 @@ void CSecurityTLS::checkSession()
"path for known hosts storage");
}
- CharArray dbPath(strlen(homeDir) + 16 + 1);
- sprintf(dbPath.buf, "%sx509_known_hosts", homeDir);
+ CharArray dbPath(strlen(homeDir) + strlen("/x509_known_hosts") + 1);
+ sprintf(dbPath.buf, "%s/x509_known_hosts", homeDir);
err = gnutls_verify_stored_pubkey(dbPath.buf, NULL,
client->getServerName(), NULL,