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://git.librecmc.org/?a=commitdiff_plain;h=d18519ae21345fea68dd7f0f5525adba3a7639a9;p=oweals%2Ftinc.git Fix segfault when using tincctl's shell without readline. --- diff --git a/src/tincctl.c b/src/tincctl.c index a515259..f384dd7 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