1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-31 21:57:12 +00:00
freebsd-ports/biology/clustalw/files/patch-ad
James E. Housley 52b82e19ed - Support CC/CFLAGS/PREFIX properly
- gets() -> fgets()
- Add WWW: line into pkg/DESCR

Also bumped PORTREVISION to 1

PR:		21572
Submitted by:	tkato@prontomail.ne.jp <KATO@FreeBSD.ORG, Tsuguru@FreeBSD.ORG>
Reviewed by:	will
Approved by:	MAINTAINER (dbader@eece.unm.edu)
2000-10-03 01:10:19 +00:00

30 lines
794 B
Plaintext

--- util.c.orig Wed Jun 7 16:50:08 2000
+++ util.c Tue Aug 8 02:59:43 2000
@@ -174,7 +174,7 @@
void getstr(char *instr,char *outstr)
{
fprintf(stdout,"%s: ",instr);
- gets(outstr);
+ fgets(outstr,sizeof(outstr),stdin);
}
double getreal(char *instr,double minx,double maxx,double def)
@@ -185,7 +185,7 @@
while(TRUE) {
fprintf(stdout,"%s (%.1f-%.1f) [%.1f]: ",instr,minx,maxx,def);
- gets(line);
+ fgets(line,sizeof(line),stdin);
status=sscanf(line,"%f",&ret);
if(status == EOF) return def;
if(ret>maxx) {
@@ -210,7 +210,7 @@
while(TRUE) {
fprintf(stdout,"%s (%d..%d) [%d]: ",
instr,(pint)minx,(pint)maxx,(pint)def);
- gets(line);
+ fgets(line,sizeof(line),stdin);
status=sscanf(line,"%d",&ret);
if(status == EOF) return def;
if(ret>maxx) {