From 8bef644d17f62ea6daf7459b863f05de187966fe Mon Sep 17 00:00:00 2001 From: runge Date: Wed, 10 Dec 2008 17:12:27 +0000 Subject: x11vnc: 0.9.6 release. Some strtok bugfixes. rename -tlsvnc to -anontls. Disable ssl caching. No cert creation prompting in inetd or bg modes. waitpid a bit more carefully on ssl helpers. Tune ssl initial timeouts. Let -create user specify starting X display. fix -rfbport prompt gui for older tk. -sslonly option. Error if no -ssl with related options. -rand option. -ssl implies -ssl SAVE --- x11vnc/userinput.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'x11vnc/userinput.c') diff --git a/x11vnc/userinput.c b/x11vnc/userinput.c index 7668344..1e00f77 100644 --- a/x11vnc/userinput.c +++ b/x11vnc/userinput.c @@ -177,9 +177,9 @@ static double scr_key_bdpush_time, scr_mouse_bdpush_time; static void parse_scroll_copyrect_str(char *scr) { char *p, *str; int i; - char *part[10]; + char *part[16]; - for (i=0; i<10; i++) { + for (i=0; i<16; i++) { part[i] = NULL; } @@ -194,6 +194,7 @@ static void parse_scroll_copyrect_str(char *scr) { while (p) { part[i++] = strdup(p); p = strtok(NULL, ","); + if (i >= 16) break; } free(str); @@ -301,9 +302,9 @@ static char *wireframe_mods = NULL; static void parse_wireframe_str(char *wf) { char *p, *str; int i; - char *part[10]; + char *part[16]; - for (i=0; i<10; i++) { + for (i=0; i<16; i++) { part[i] = NULL; } @@ -327,6 +328,7 @@ static void parse_wireframe_str(char *wf) { while (p) { part[i++] = strdup(p); p = strtok(NULL, ","); + if (i >= 16) break; } free(str); -- cgit v1.2.1