diff options
Diffstat (limited to 'tools/tool.c')
-rw-r--r-- | tools/tool.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/tool.c b/tools/tool.c index dcbb1a5..313484a 100644 --- a/tools/tool.c +++ b/tools/tool.c @@ -204,6 +204,8 @@ exec_external (const char *command, return_if_fail (path != NULL); argv[0] = filename; + argv[argc] = NULL; + execvp (path, argv); } @@ -245,6 +247,8 @@ main (int argc, char *argv[]) if (!command) { skip = true; command = argv[in]; + } else { + skip = false; } /* The global long options */ |