freebsd-ports/biology/nclever/files/patch-main
Johann Visagie cdda6a705b Add nclever 4.0, a character-based version of NCBI's Entrez program.
PR:		30783
Submitted by:	Tony Maher <tonym@biolateral.com.au>
2001-09-26 09:22:02 +00:00

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