diff options
| author | runge <runge> | 2007-04-28 23:27:00 +0000 |
|---|---|---|
| committer | runge <runge> | 2007-04-28 23:27:00 +0000 |
| commit | 3fcab6f1ec5238977b28d5d6f5fbae365b1254fa (patch) | |
| tree | 1b8b1e6e6c5663baa3f548ca6d0cd431c8e27f4c /x11vnc/x11vnc.c | |
| parent | 2d0b184f8b99b5f60a8c4f94bfc42ebf96dbc9b3 (diff) | |
| download | libtdevnc-3fcab6f1.tar.gz libtdevnc-3fcab6f1.zip | |
x11vnc: -users sslpeer= option. RFB_SSL_CLIENT_CERT, -ncache 10 default
Diffstat (limited to 'x11vnc/x11vnc.c')
| -rw-r--r-- | x11vnc/x11vnc.c | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/x11vnc/x11vnc.c b/x11vnc/x11vnc.c index 13c9c3e..b8733fc 100644 --- a/x11vnc/x11vnc.c +++ b/x11vnc/x11vnc.c @@ -2248,8 +2248,17 @@ int main(int argc, char* argv[]) { show_dragging = 0; #ifndef NO_NCACHE } else if (!strcmp(arg, "-ncache") || !strcmp(arg, "-nc")) { - CHECK_ARGC - ncache = atoi(argv[++i]); + if (i < argc-1) { + char *s = argv[i+1]; + if (s[0] != '-') { + ncache = atoi(s); + i++; + } else { + ncache = ncache_default; + } + } else { + ncache = ncache_default; + } if (ncache % 2 != 0) { ncache++; } |
