diff options
Diffstat (limited to 'biology/clustalw/files/patch-aj')
-rw-r--r-- | biology/clustalw/files/patch-aj | 43 |
1 files changed, 0 insertions, 43 deletions
diff --git a/biology/clustalw/files/patch-aj b/biology/clustalw/files/patch-aj deleted file mode 100644 index 4e7cb3c21c94..000000000000 --- a/biology/clustalw/files/patch-aj +++ /dev/null @@ -1,43 +0,0 @@ ---- util.c.orig Thu Feb 13 16:19:35 2003 -+++ util.c Thu Feb 13 16:21:40 2003 -@@ -171,10 +171,11 @@ - return str; - } - --void getstr(char *instr,char *outstr) -+void getstr(char *instr,char *outstr, int len) - { - fprintf(stdout,"%s: ",instr); -- gets(outstr); -+ fgets(outstr, len, stdin); -+ outstr[strlen(outstr)-1] = '\0'; - } - - double getreal(char *instr,double minx,double maxx,double def) -@@ -185,7 +186,7 @@ - - while(TRUE) { - fprintf(stdout,"%s (%.1f-%.1f) [%.1f]: ",instr,minx,maxx,def); -- gets(line); -+ fgets(line, MAXLINE, stdin); - status=sscanf(line,"%f",&ret); - if(status == EOF) return def; - if(ret>maxx) { -@@ -210,7 +211,7 @@ - while(TRUE) { - fprintf(stdout,"%s (%d..%d) [%d]: ", - instr,(pint)minx,(pint)maxx,(pint)def); -- gets(line); -+ fgets(line, MAXLINE, stdin); - status=sscanf(line,"%d",&ret); - if(status == EOF) return def; - if(ret>maxx) { -@@ -230,7 +231,7 @@ - { - char line[MAXLINE]; - -- getstr("\n\nEnter system command",line); -+ getstr("\n\nEnter system command",line,MAXLINE); - if(*line != EOS) - system(line); - fprintf(stdout,"\n\n"); |