summaryrefslogblamecommitdiff
path: root/biology/nclever/files/patch-main
blob: 0014e55b9ef8d2310e678e517dfbbbc506e96c25 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11










                                                           
--- 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);
 }