projects
/
oweals
/
tinc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b332bd9
)
Fix segfault when using tincctl's shell without readline.
author
Guus Sliepen
<guus@tinc-vpn.org>
Sun, 5 Aug 2012 15:03:57 +0000
(17:03 +0200)
committer
Guus Sliepen
<guus@tinc-vpn.org>
Sun, 5 Aug 2012 15:03:57 +0000
(17:03 +0200)
src/tincctl.c
patch
|
blob
|
history
diff --git
a/src/tincctl.c
b/src/tincctl.c
index a5152592d1631a039b85ea581112cce718870d24..f384dd756be84bd3545f61158d504515e4e51d30 100644
(file)
--- 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, promp
t);
+ fputs(
prompt, stdou
t);
line = fgets(buf, sizeof buf, stdin);
#endif