From: Guus Sliepen Date: Sun, 5 Aug 2012 15:03:57 +0000 (+0200) Subject: Fix segfault when using tincctl's shell without readline. X-Git-Tag: release-1.1pre3~59 X-Git-Url: https://www.tinc-vpn.org/git/browse?p=tinc;a=commitdiff_plain;h=d18519ae21345fea68dd7f0f5525adba3a7639a9 Fix segfault when using tincctl's shell without readline. --- diff --git a/src/tincctl.c b/src/tincctl.c index a5152592..f384dd75 100644 --- a/src/tincctl.c +++ b/src/tincctl.c @@ -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