diff options
Diffstat (limited to 'libvncserver/cargs.c')
-rw-r--r-- | libvncserver/cargs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libvncserver/cargs.c b/libvncserver/cargs.c index 10926a9..96b9f84 100644 --- a/libvncserver/cargs.c +++ b/libvncserver/cargs.c @@ -151,7 +151,7 @@ rfbProcessArguments(rfbScreenInfoPtr rfbScreen,int* argc, char *argv[]) for(extension=rfbGetExtensionIterator();handled==0 && extension; extension=extension->next) if(extension->processArgument) - handled = extension->processArgument(argv + i); + handled = extension->processArgument(*argc - i, argv + i); rfbReleaseExtensionIterator(); if(handled==0) { |