From 09f63f0395fe103fd1442b2b012b98f2cda2dcd3 Mon Sep 17 00:00:00 2001 From: runge Date: Wed, 18 Nov 2009 18:25:36 -0500 Subject: x11vnc: -findauth, -auth guess, & etc. --- x11vnc/remote.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'x11vnc/remote.c') diff --git a/x11vnc/remote.c b/x11vnc/remote.c index 3c6b42d..6d4e48a 100644 --- a/x11vnc/remote.c +++ b/x11vnc/remote.c @@ -787,7 +787,7 @@ char *process_remote_cmd(char *cmd, int stringonly) { while (fgets(tmp, 1024, f) != NULL) { char *c = strchr(tmp, '#'); if (c) *c = '\0'; - if (strlen(p) + strlen(tmp) > sbuf.st_size) { + if (strlen(p) + strlen(tmp) > (size_t) sbuf.st_size) { break; } strcat(p, tmp); @@ -5548,6 +5548,10 @@ char *process_remote_cmd(char *cmd, int stringonly) { NONUL(vnc_desktop_name)); goto qry; } + if (!strcmp(p, "icon_mode")) { + snprintf(buf, bufn, "aro=%s:%d", p, icon_mode); + goto qry; + } if (!strcmp(p, "autoport")) { snprintf(buf, bufn, "aro=%s:%d", p, auto_port); goto qry; -- cgit v1.2.1