summaryrefslogtreecommitdiff
path: root/src/ladmin/ladmin.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ladmin/ladmin.c')
-rw-r--r--src/ladmin/ladmin.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ladmin/ladmin.c b/src/ladmin/ladmin.c
index 9ea2b28..5ef9b6c 100644
--- a/src/ladmin/ladmin.c
+++ b/src/ladmin/ladmin.c
@@ -4439,7 +4439,8 @@ int prompt ()
// get command and parameter
memset (buf, '\0', sizeof (buf));
fflush (stdin);
- fgets (buf, 1023, stdin);
+ if (!fgets (buf, 1023, stdin))
+ exit (0);
buf[1023] = '\0';
Iprintf ("\033[0m");