summaryrefslogtreecommitdiff
path: root/biology/clustalw
diff options
context:
space:
mode:
authorKirill Ponomarev <krion@FreeBSD.org>2003-08-28 04:51:02 +0000
committerKirill Ponomarev <krion@FreeBSD.org>2003-08-28 04:51:02 +0000
commitc101866e9f7d38e4afd34a8c6928e7689ae22b7c (patch)
treefd08ba7636fc78e0480e6c76424a139ce1d4972a /biology/clustalw
parent* Update to 2.0.14 (diff)
- Add an end-of-string to each line of the input
when parsing the input files PR: 56043 Submitted by: maintainer
Notes
Notes: svn path=/head/; revision=87827
Diffstat (limited to 'biology/clustalw')
-rw-r--r--biology/clustalw/files/patch-ac14
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);
}