Fix segfault when using tincctl's shell without readline.
authorGuus Sliepen <guus@tinc-vpn.org>
Sun, 5 Aug 2012 15:03:57 +0000 (17:03 +0200)
committerGuus Sliepen <guus@tinc-vpn.org>
Sun, 5 Aug 2012 15:03:57 +0000 (17:03 +0200)
src/tincctl.c

index a515259..f384dd7 100644 (file)
@@ -1916,7 +1916,7 @@ static int cmd_shell(int argc, char *argv[]) {
                }
 #else
                if(tty)
-                       fputs(stdout, prompt);
+                       fputs(prompt, stdout);
 
                line = fgets(buf, sizeof buf, stdin);
 #endif