blob: 0014e55b9ef8d2310e678e517dfbbbc506e96c25 (
plain) (
tree)
|
|
--- 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);
}
|