head	1.5;
access;
symbols
	RELEASE_7_0_0:1.4
	RELEASE_6_3_0:1.4
	PRE_XORG_7:1.4
	RELEASE_4_EOL:1.4
	RELEASE_6_2_0:1.4
	RELEASE_6_1_0:1.4
	RELEASE_5_5_0:1.4
	RELEASE_6_0_0:1.4
	RELEASE_5_4_0:1.4
	RELEASE_4_11_0:1.4
	RELEASE_5_3_0:1.4
	RELEASE_4_10_0:1.4
	RELEASE_5_2_1:1.4
	RELEASE_5_2_0:1.4
	RELEASE_4_9_0:1.4
	RELEASE_5_1_0:1.3
	RELEASE_4_8_0:1.3
	RELEASE_5_0_0:1.2
	RELEASE_4_7_0:1.2
	RELEASE_4_6_2:1.2
	RELEASE_4_6_1:1.2
	RELEASE_4_6_0:1.2
	RELEASE_5_0_DP1:1.2
	RELEASE_4_5_0:1.1
	RELEASE_4_4_0:1.1
	RELEASE_4_3_0:1.1
	RELEASE_4_2_0:1.1;
locks; strict;
comment	@# @;


1.5
date	2007.12.15.18.47.00;	author pav;	state dead;
branches;
next	1.4;

1.4
date	2003.08.28.04.51.02;	author krion;	state Exp;
branches;
next	1.3;

1.3
date	2003.02.15.18.43.14;	author naddy;	state Exp;
branches;
next	1.2;

1.2
date	2002.03.22.08.23.22;	author wjv;	state Exp;
branches;
next	1.1;

1.1
date	2000.10.03.01.10.19;	author jeh;	state Exp;
branches;
next	;


desc
@@


1.5
log
@- Update to 2.0

PR:		ports/117713
Submitted by:	Motomichi Matsuzaki <mzaki@@e-mail.ne.jp>
@
text
@--- interface.c.orig	Thu Feb 13 15:17:33 2003
+++ interface.c	Thu Feb 13 15:26:28 2003
@@@@ -1132,7 +1132,7 @@@@
 	/* added for File System Standards  - Francois */
 	path1=(char *)ckalloc((strlen(path)+64)*sizeof(char));
 	strcpy(path1,path);
-	strcat(path1,"/usr/share/clustalx:/usr/local/share/clustalx"); 
+	strcat(path1,DATADIR); 
 
         lf=(sint)strlen(fname);
         deb=path1;
@@@@ -1224,7 +1224,7 @@@@
 				if(strstr(temp, help_marker)){
 				  	if(usemenu) {
 						fprintf(stdout,"\n");
-				    		getstr("Press [RETURN] to continue",lin2);
+				    		getstr("Press [RETURN] to continue",lin2,MAXLINE);
 				  	}
 					fclose(help_file);
 					return;
@@@@ -1236,7 +1236,7 @@@@
 			       if(usemenu) {
 			          if(nlines >= PAGE_LEN) {
 				     	   fprintf(stdout,"\n");
-			 	  	   getstr("Press [RETURN] to continue or  X  to stop",lin2);
+			 	  	   getstr("Press [RETURN] to continue or  X  to stop",lin2,MAXLINE);
 				  	   if(toupper(*lin2) == 'X') {
 						   fclose(help_file);
 						   return;
@@@@ -1248,7 +1248,7 @@@@
 			}
 			if(usemenu) {
 				fprintf(stdout,"\n");
-				getstr("Press [RETURN] to continue",lin2);
+				getstr("Press [RETURN] to continue",lin2,MAXLINE);
 			}
 			fclose(help_file);
 		}
@@@@ -1287,7 +1287,7 @@@@
                 ++nlines;
                 if(nlines >= PAGE_LEN) {
                         fprintf(stdout,"\n");
-                        getstr("Press [RETURN] to continue or  X  to stop",lin2);
+                        getstr("Press [RETURN] to continue or  X  to stop",lin2,MAXLINE);
                         if(toupper(*lin2) == 'X') {
                                 fclose(file);
                                 return;
@@@@ -1298,7 +1298,7 @@@@
         }
         fclose(file);
         fprintf(stdout,"\n");
-        getstr("Press [RETURN] to continue",lin2);
+        getstr("Press [RETURN] to continue",lin2,MAXLINE);
 }
 
 
@@@@ -1747,7 +1747,7 @@@@
         FILE *infile;
 
         if(usemenu)
-                getstr("Enter name of the matrix file",lin2);
+                getstr("Enter name of the matrix file",lin2,MAXLINE);
         else
                 strcpy(lin2,str);
 
@@@@ -1773,7 +1773,7 @@@@
         FILE *infile;
 
         if(usemenu)
-                getstr("Enter name of the matrix file",lin2);
+                getstr("Enter name of the matrix file",lin2,MAXLINE);
         else
                 strcpy(lin2,str);
 
@@@@ -2176,7 +2176,7 @@@@
 			strcpy(local_prompt,"\n\nEnter new name to avoid overwriting ");
 			strcat(local_prompt," [%s]: ");          
 			fprintf(stdout,local_prompt,file_name);
-			gets(temp);
+			fgets(temp,FILENAMELEN+1,stdin); if(*temp != EOS) temp[strlen(temp)-1]=EOS;
 			if(*temp != EOS) strcpy(file_name,temp);
 		}
 	}
@@@@ -2184,7 +2184,7 @@@@
 		strcpy(local_prompt,prompt);
 		strcat(local_prompt," [%s]: ");          
 		fprintf(stdout,local_prompt,file_name);
-		gets(temp);
+		fgets(temp,FILENAMELEN+1,stdin); if(*temp != EOS) temp[strlen(temp)-1]=EOS;
 		if(*temp != EOS) strcpy(file_name,temp);
 	}
 
@@@@ -2385,7 +2385,7 @@@@
 		if (usemenu)
             	fprintf(stdout,"\nUse the existing GUIDE TREE file,  %s  (y/n) ? [y]: ",
                                            tree_name);
-                gets(temp);
+                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;
@@@@ -2617,7 +2617,7 @@@@
 
             fprintf(stdout,"\nEnter a name for the guide tree file [%s]: ",
                                            phylip_name);
-                	gets(temp);
+			fgets(temp,MAXLINE,stdin); if(*temp != EOS) temp[strlen(temp)-1]=EOS;
                 	if(*temp != EOS)
                         	strcpy(phylip_name,temp);
         	}
@@@@ -2719,7 +2719,7 @@@@
 #endif
             	fprintf(stdout,"\nUse the existing GUIDE TREE file for Profile 1,  %s  (y/n) ? [y]: ",
                                            tree_name);
-                gets(temp);
+                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;
@@@@ -2745,7 +2745,7 @@@@
 #endif
             	fprintf(stdout,"\nUse the existing GUIDE TREE file for Profile 2,  %s  (y/n) ? [y]: ",
                                            tree_name);
-                gets(temp);
+                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;
@@@@ -4203,7 +4203,7 @@@@
   if(usemenu) {
     fprintf(stdout,"\nEnter a name for the parameter output file [%s]: ",
 	    parname);
-    gets(temp);
+    fgets(temp,FILENAMELEN+1,stdin); if(*temp != EOS) temp[strlen(temp)-1]=EOS;
     if(*temp != EOS)
       strcpy(parname,temp);
   }
@


1.4
log
@- Add an end-of-string to each line of the input
  when parsing the input files

PR:		56043
Submitted by:	maintainer
@
text
@@


1.3
log
@Update to 1.83.

PR:		48264
Submitted by:	David A. Bader <dbader@@eece.unm.edu>
@
text
@d80 1
a80 1
+			fgets(temp,FILENAMELEN+1,stdin);
d89 1
a89 1
+		fgets(temp,FILENAMELEN+1,stdin);
d98 1
a98 1
+                fgets(temp,MAXLINE,stdin);
d107 1
a107 1
+			fgets(temp,MAXLINE,stdin);
d116 1
a116 1
+                fgets(temp,MAXLINE,stdin);
d125 1
a125 1
+                fgets(temp,MAXLINE,stdin);
d134 1
a134 1
+    fgets(temp,FILENAMELEN+1,stdin);
@


1.2
log
@- Fix certain mistakes in FreeBSD patches
- Bump PORTREVISION
- Poroblem originally reported by Fernan Aguero <fernan@@iib.unsam.edu.ar> on
  FreeBSD-bio list

PR:		36169
Submitted by:	David A. Bader <dbader@@eece.unm.edu> (MAINTAINER)
@
text
@d1 3
a3 3
--- interface.c.orig	Wed Jun  7 16:50:07 2000
+++ interface.c	Tue Aug  8 03:11:33 2000
@@@@ -1078,7 +1078,7 @@@@
d12 126
@


1.1
log
@- 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)
@
text
@a11 63
@@@@ -2121,7 +2121,7 @@@@
 			strcpy(local_prompt,"\n\nEnter new name to avoid overwriting ");
 			strcat(local_prompt," [%s]: ");          
 			fprintf(stdout,local_prompt,file_name);
-			gets(temp);
+			fgets(temp,sizeof(temp),stdin);
 			if(*temp != EOS) strcpy(file_name,temp);
 		}
 	}
@@@@ -2129,7 +2129,7 @@@@
 		strcpy(local_prompt,prompt);
 		strcat(local_prompt," [%s]: ");          
 		fprintf(stdout,local_prompt,file_name);
-		gets(temp);
+		fgets(temp,sizeof(temp),stdin);
 		if(*temp != EOS) strcpy(file_name,temp);
 	}
 
@@@@ -2335,7 +2335,7 @@@@
 		if (usemenu)
             	fprintf(stdout,"\nUse the existing GUIDE TREE file,  %s  (y/n) ? [y]: ",
                                            tree_name);
-                gets(temp);
+                fgets(temp,sizeof(temp),stdin);
                 if(*temp != 'n' && *temp != 'N') {
                     strcpy(phylip_name,tree_name);
                     use_tree = TRUE;
@@@@ -2567,7 +2567,7 @@@@
 
             fprintf(stdout,"\nEnter a name for the guide tree file [%s]: ",
                                            phylip_name);
-                	gets(temp);
+                	fgets(temp,sizeof(temp),stdin);
                 	if(*temp != EOS)
                         	strcpy(phylip_name,temp);
         	}
@@@@ -2676,7 +2676,7 @@@@
 #endif
             	fprintf(stdout,"\nUse the existing GUIDE TREE file for Profile 1,  %s  (y/n) ? [y]: ",
                                            tree_name);
-                gets(temp);
+                fgets(temp,sizeof(temp),stdin);
                 if(*temp != 'n' && *temp != 'N') {
                     strcpy(p1_tree_name,tree_name);
                     use_tree1 = TRUE;
@@@@ -2702,7 +2702,7 @@@@
 #endif
             	fprintf(stdout,"\nUse the existing GUIDE TREE file for Profile 2,  %s  (y/n) ? [y]: ",
                                            tree_name);
-                gets(temp);
+                fgets(temp,sizeof(temp),stdin);
                 if(*temp != 'n' && *temp != 'N') {
                     strcpy(p2_tree_name,tree_name);
                     use_tree2 = TRUE;
@@@@ -3730,7 +3730,7 @@@@
 	if(usemenu) {
         	fprintf(stdout,"\nEnter a name for the parameter output file [%s]: ",
                                            parname);
-               	gets(temp);
+               	fgets(temp,sizeof(temp),stdin);
                	if(*temp != EOS)
                        	strcpy(parname,temp);
        	}
@

