From 36dee4c539521578005eed5e58b4803b73f0c889 Mon Sep 17 00:00:00 2001 From: Guus Sliepen Date: Sun, 15 Jul 2012 21:15:35 +0200 Subject: [PATCH] Fix tincctl start. --- src/tincctl.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/tincctl.c b/src/tincctl.c index b2a6561f..c1654186 100644 --- a/src/tincctl.c +++ b/src/tincctl.c @@ -655,6 +655,9 @@ static bool connect_tincd() { static int cmd_start(int argc, char *argv[]) { int i, j; char *c; + + argc += optind; + argv -= optind; char *slash = strrchr(argv[0], '/'); #ifdef HAVE_MINGW -- 2.20.1