diff options
author | runge <runge> | 2007-10-27 22:45:30 +0000 |
---|---|---|
committer | runge <runge> | 2007-10-27 22:45:30 +0000 |
commit | 81ef0b9345dd393fea8edab879ee1fd8f0bf9e81 (patch) | |
tree | 6866c2f68f25a00cbfb4f636282fd9cf52bf4a37 /x11vnc/screen.c | |
parent | be9dc49025c3588e6b01051263ca410769174ea4 (diff) | |
download | libtdevnc-81ef0b9345dd393fea8edab879ee1fd8f0bf9e81.tar.gz libtdevnc-81ef0b9345dd393fea8edab879ee1fd8f0bf9e81.zip |
x11vnc: -proxy, -ssh options. ncache bug in -8to24, Selection "targets" bugfix.
Diffstat (limited to 'x11vnc/screen.c')
-rw-r--r-- | x11vnc/screen.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/x11vnc/screen.c b/x11vnc/screen.c index 0bda337..69efde6 100644 --- a/x11vnc/screen.c +++ b/x11vnc/screen.c @@ -25,6 +25,7 @@ #include "macosxCG.h" #include "avahi.h" #include "solid.h" +#include "inet.h" #include <rfb/rfbclient.h> @@ -1242,7 +1243,7 @@ if (db) fprintf(stderr, "initialize_raw_fb reset\n"); unsigned int vals[1024], val; int x, y, fd, w = 1024, h = 768; if (strstr(n, "0x")) { - if (sscanf(n, "0x%lx", &val) != 1) { + if (sscanf(n, "0x%x", &val) != 1) { val = 0; } } |