diff options
author | runge <runge> | 2006-06-24 01:00:43 +0000 |
---|---|---|
committer | runge <runge> | 2006-06-24 01:00:43 +0000 |
commit | 9992160105b0433484bca804d62eb672aff113de (patch) | |
tree | 76447789365f2cfc38e5650a3a34cd9ad132382f /x11vnc/sslcmds.c | |
parent | 64e731a9da82e3cc614e274d6fca6f855d0359b7 (diff) | |
download | libtdevnc-9992160105b0433484bca804d62eb672aff113de.tar.gz libtdevnc-9992160105b0433484bca804d62eb672aff113de.zip |
x11vnc: misc cleanup.
Diffstat (limited to 'x11vnc/sslcmds.c')
-rw-r--r-- | x11vnc/sslcmds.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/x11vnc/sslcmds.c b/x11vnc/sslcmds.c index 88254d1..5860f14 100644 --- a/x11vnc/sslcmds.c +++ b/x11vnc/sslcmds.c @@ -5,6 +5,7 @@ #include "cleanup.h" #include "sslhelper.h" #include "ssltools.h" +#include "connections.h" #if LIBVNCSERVER_HAVE_FORK #if LIBVNCSERVER_HAVE_SYS_WAIT_H @@ -671,7 +672,8 @@ void sslEncKey(char *path, int mode) { incert = 1; } if (incert) { - if (strlen(cert)+strlen(line) < 2*sbuf.st_size) { + if (strlen(cert)+strlen(line) < + 2 * (size_t) sbuf.st_size) { strcat(cert, line); } } |