diff options
Diffstat (limited to 'x11vnc/remote.c')
-rw-r--r-- | x11vnc/remote.c | 6 |
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; |