From d18519ae21345fea68dd7f0f5525adba3a7639a9 Mon Sep 17 00:00:00 2001 From: Guus Sliepen Date: Sun, 5 Aug 2012 17:03:57 +0200 Subject: [PATCH] Fix segfault when using tincctl's shell without readline. --- src/tincctl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.39.5