diff options
author | MadCamel <madcamel@gmail.com> | 2010-04-04 16:15:43 -0400 |
---|---|---|
committer | MadCamel <madcamel@gmail.com> | 2010-04-04 16:15:43 -0400 |
commit | b683a1ba9ba9e46bab0d8f94e38ef56669f8530a (patch) | |
tree | c90685468d3a67f4f2dc98d72b1d23d0745ad693 /src/ladmin | |
parent | 3db7c2cd1c4fb0d8888416e9b5733abab574ebe9 (diff) | |
download | tmwa-b683a1ba9ba9e46bab0d8f94e38ef56669f8530a.tar.gz tmwa-b683a1ba9ba9e46bab0d8f94e38ef56669f8530a.tar.bz2 tmwa-b683a1ba9ba9e46bab0d8f94e38ef56669f8530a.tar.xz tmwa-b683a1ba9ba9e46bab0d8f94e38ef56669f8530a.zip |
Fixed some bad code that was generating compiler warnings
Diffstat (limited to 'src/ladmin')
-rw-r--r-- | src/ladmin/ladmin.c | 3 |
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"); |