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: import-tinc-1.1~309 X-Git-Url: https://git.meshlink.io/?a=commitdiff_plain;h=d18519ae21345fea68dd7f0f5525adba3a7639a9;p=meshlink 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