summaryrefslogtreecommitdiffstats
path: root/x11vnc/remote.c
diff options
context:
space:
mode:
authorrunge <runge@karlrunge.com>2009-11-18 18:25:36 -0500
committerrunge <runge@karlrunge.com>2009-11-18 18:25:36 -0500
commit09f63f0395fe103fd1442b2b012b98f2cda2dcd3 (patch)
treed38a54ba7dc61a229cdf2b83acf21d86eb672cde /x11vnc/remote.c
parent49cdfb4c1f25b371474f3a355e205471daa08640 (diff)
downloadlibtdevnc-09f63f0395fe103fd1442b2b012b98f2cda2dcd3.tar.gz
libtdevnc-09f63f0395fe103fd1442b2b012b98f2cda2dcd3.zip
x11vnc: -findauth, -auth guess, & etc.
Diffstat (limited to 'x11vnc/remote.c')
-rw-r--r--x11vnc/remote.c6
1 files changed, 5 insertions, 1 deletions
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;