Fix segfault when using tincctl's shell without readline.

This commit is contained in:
Guus Sliepen 2012-08-05 17:03:57 +02:00
parent b332bd9646
commit d18519ae21

View file

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