diff options
author | krion <krion@FreeBSD.org> | 2003-08-28 12:51:02 +0800 |
---|---|---|
committer | krion <krion@FreeBSD.org> | 2003-08-28 12:51:02 +0800 |
commit | e9168fc82a23bdfceaf7f346a673afe048f8c11a (patch) | |
tree | 1d93269d42abd1e146dc9c287e5a446355b30367 | |
parent | 88b001354464933ad00d15ced540002a438fa0ab (diff) | |
download | freebsd-ports-gnome-e9168fc82a23bdfceaf7f346a673afe048f8c11a.tar.gz freebsd-ports-gnome-e9168fc82a23bdfceaf7f346a673afe048f8c11a.tar.zst freebsd-ports-gnome-e9168fc82a23bdfceaf7f346a673afe048f8c11a.zip |
- Add an end-of-string to each line of the input
when parsing the input files
PR: 56043
Submitted by: maintainer
-rw-r--r-- | biology/clustalw/files/patch-ac | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/biology/clustalw/files/patch-ac b/biology/clustalw/files/patch-ac index 57656a482e8b..2cf5496f3631 100644 --- a/biology/clustalw/files/patch-ac +++ b/biology/clustalw/files/patch-ac @@ -77,7 +77,7 @@ strcat(local_prompt," [%s]: "); fprintf(stdout,local_prompt,file_name); - gets(temp); -+ fgets(temp,FILENAMELEN+1,stdin); ++ fgets(temp,FILENAMELEN+1,stdin); if(*temp != EOS) temp[strlen(temp)-1]=EOS; if(*temp != EOS) strcpy(file_name,temp); } } @@ -86,7 +86,7 @@ strcat(local_prompt," [%s]: "); fprintf(stdout,local_prompt,file_name); - gets(temp); -+ fgets(temp,FILENAMELEN+1,stdin); ++ fgets(temp,FILENAMELEN+1,stdin); if(*temp != EOS) temp[strlen(temp)-1]=EOS; if(*temp != EOS) strcpy(file_name,temp); } @@ -95,7 +95,7 @@ fprintf(stdout,"\nUse the existing GUIDE TREE file, %s (y/n) ? [y]: ", tree_name); - gets(temp); -+ fgets(temp,MAXLINE,stdin); ++ fgets(temp,MAXLINE,stdin); if(*temp != EOS) temp[strlen(temp)-1]=EOS; if(*temp != 'n' && *temp != 'N') { strcpy(phylip_name,tree_name); use_tree = TRUE; @@ -104,7 +104,7 @@ fprintf(stdout,"\nEnter a name for the guide tree file [%s]: ", phylip_name); - gets(temp); -+ fgets(temp,MAXLINE,stdin); ++ fgets(temp,MAXLINE,stdin); if(*temp != EOS) temp[strlen(temp)-1]=EOS; if(*temp != EOS) strcpy(phylip_name,temp); } @@ -113,7 +113,7 @@ fprintf(stdout,"\nUse the existing GUIDE TREE file for Profile 1, %s (y/n) ? [y]: ", tree_name); - gets(temp); -+ fgets(temp,MAXLINE,stdin); ++ fgets(temp,MAXLINE,stdin); if(*temp != EOS) temp[strlen(temp)-1]=EOS; if(*temp != 'n' && *temp != 'N') { strcpy(p1_tree_name,tree_name); use_tree1 = TRUE; @@ -122,7 +122,7 @@ fprintf(stdout,"\nUse the existing GUIDE TREE file for Profile 2, %s (y/n) ? [y]: ", tree_name); - gets(temp); -+ fgets(temp,MAXLINE,stdin); ++ fgets(temp,MAXLINE,stdin); if(*temp != EOS) temp[strlen(temp)-1]=EOS; if(*temp != 'n' && *temp != 'N') { strcpy(p2_tree_name,tree_name); use_tree2 = TRUE; @@ -131,7 +131,7 @@ fprintf(stdout,"\nEnter a name for the parameter output file [%s]: ", parname); - gets(temp); -+ fgets(temp,FILENAMELEN+1,stdin); ++ fgets(temp,FILENAMELEN+1,stdin); if(*temp != EOS) temp[strlen(temp)-1]=EOS; if(*temp != EOS) strcpy(parname,temp); } |