diff options
Diffstat (limited to 'x11vnc/x11vnc.c')
-rw-r--r-- | x11vnc/x11vnc.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/x11vnc/x11vnc.c b/x11vnc/x11vnc.c index 10ad532..fb3597c 100644 --- a/x11vnc/x11vnc.c +++ b/x11vnc/x11vnc.c @@ -1946,6 +1946,12 @@ int main(int argc, char* argv[]) { ; /* done above */ } else if (!strcmp(arg, "-env")) { i++; /* done above */ + } else if (!strcmp(arg, "-prog")) { + CHECK_ARGC + if (program_name) { + free(program_name); + } + program_name = strdup(argv[++i]); } else if (!strcmp(arg, "-h") || !strcmp(arg, "-help")) { print_help(0); } else if (!strcmp(arg, "-?") || !strcmp(arg, "-opts")) { |