cdda6a705b
PR: 30783 Submitted by: Tony Maher <tonym@biolateral.com.au>
11 lines
343 B
Text
11 lines
343 B
Text
--- main.c.orig Mon Sep 24 16:34:16 2001
|
|
+++ main.c Mon Sep 24 16:37:26 2001
|
|
@@ -358,7 +358,7 @@
|
|
/* Read a line from stdin */
|
|
static Boolean GetCommand(void)
|
|
{
|
|
- if (!gets(Command)) return(FALSE);
|
|
+ if (!fgets(Command,MAXLINELEN-1,stdin)) return(FALSE);
|
|
if (EchoCommands) fprintf(CmdStream,"%s\n",Command);
|
|
return(TRUE);
|
|
}
|