summaryrefslogtreecommitdiffstats
path: root/x11vnc/userinput.c
diff options
context:
space:
mode:
authorrunge <runge>2008-12-10 17:12:27 +0000
committerrunge <runge>2008-12-10 17:12:27 +0000
commit8bef644d17f62ea6daf7459b863f05de187966fe (patch)
tree5137fbbab354ccfe29622a99c3d913c558d1c87a /x11vnc/userinput.c
parente68192915936e173b887856a019d4a54ba96069c (diff)
downloadlibtdevnc-8bef644d17f62ea6daf7459b863f05de187966fe.tar.gz
libtdevnc-8bef644d17f62ea6daf7459b863f05de187966fe.zip
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
Diffstat (limited to 'x11vnc/userinput.c')
-rw-r--r--x11vnc/userinput.c10
1 files changed, 6 insertions, 4 deletions
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);