Fix segfault when using tincctl's shell without readline.
This commit is contained in:
parent
b332bd9646
commit
d18519ae21
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue