diff options
author | dscho <dscho> | 2001-12-14 15:36:23 +0000 |
---|---|---|
committer | dscho <dscho> | 2001-12-14 15:36:23 +0000 |
commit | cddeb0d9d261d0a7f6e987c69d6123f5aedeebbe (patch) | |
tree | 0de44e4f089bd65dc2bc3b6b67d5e9f3030a247d /cargs.c | |
parent | 11651ff29301b874b792f409770360299119cc0d (diff) | |
download | libtdevnc-cddeb0d9d261d0a7f6e987c69d6123f5aedeebbe.tar.gz libtdevnc-cddeb0d9d261d0a7f6e987c69d6123f5aedeebbe.zip |
*argc=0 in cargs allowed, when copying area, first undraw cursor ...
Diffstat (limited to 'cargs.c')
-rw-r--r-- | cargs.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -40,6 +40,8 @@ rfbProcessArguments(rfbScreenInfoPtr rfbScreen,int* argc, char *argv[]) { int i,i1; + if(!argc) return; + for (i = i1 = 1; i < *argc; i++) { if (strcmp(argv[i], "-help") == 0) { rfbUsage(); @@ -101,6 +103,7 @@ rfbProcessSizeArguments(int* width,int* height,int* bpp,int* argc, char *argv[]) { int i,i1; + if(!argc) return; for (i = i1 = 1; i < *argc-1; i++) { if (strcmp(argv[i], "-bpp") == 0) { *bpp = atoi(argv[++i]); |