head	1.4;
access;
symbols
	RELEASE_8_3_0:1.3
	RELEASE_9_0_0:1.3
	RELEASE_7_4_0:1.3
	RELEASE_8_2_0:1.3
	RELEASE_6_EOL:1.3
	RELEASE_8_1_0:1.3
	RELEASE_7_3_0:1.3
	RELEASE_8_0_0:1.3
	RELEASE_7_2_0:1.3
	RELEASE_7_1_0:1.3
	RELEASE_6_4_0:1.3
	RELEASE_5_EOL:1.3
	RELEASE_7_0_0:1.3
	RELEASE_6_3_0:1.3
	PRE_XORG_7:1.3
	RELEASE_4_EOL:1.3
	RELEASE_6_2_0:1.3
	RELEASE_6_1_0:1.3
	RELEASE_5_5_0:1.3
	RELEASE_6_0_0:1.3
	RELEASE_5_4_0:1.3
	RELEASE_4_11_0:1.3
	RELEASE_5_3_0:1.3
	RELEASE_4_10_0:1.3
	RELEASE_5_2_1:1.3
	RELEASE_5_2_0:1.3
	RELEASE_4_9_0:1.3
	RELEASE_5_1_0:1.3
	RELEASE_4_8_0:1.3
	RELEASE_5_0_0:1.3
	RELEASE_4_7_0:1.3
	RELEASE_4_6_2:1.3
	RELEASE_4_6_1:1.3
	RELEASE_4_6_0:1.3
	RELEASE_5_0_DP1:1.3
	RELEASE_4_5_0:1.3
	RELEASE_4_4_0:1.2
	RELEASE_4_3_0:1.2
	RELEASE_4_2_0:1.2
	RELEASE_4_1_1:1.2
	RELEASE_4_1_0:1.2
	RELEASE_3_5_0:1.2
	RELEASE_4_0_0:1.2
	RELEASE_3_4_0:1.2
	RELEASE_3_3_0:1.2
	RELEASE_3_2_0:1.2
	RELEASE_3_1_0:1.2
	RELEASE_2_2_8:1.2
	RELEASE_3_0_0:1.2
	RELEASE_2_2_7:1.2
	RELEASE_2_2_6:1.2
	babel_1_6:1.1.1.1
	FRANKCH:1.1.1;
locks; strict;
comment	@# @;


1.4
date	2012.11.17.05.54.51;	author svnexp;	state Exp;
branches;
next	1.3;

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

1.2
date	97.12.24.07.24.19;	author vanilla;	state Exp;
branches;
next	1.1;

1.1
date	97.12.21.21.57.36;	author vanilla;	state Exp;
branches
	1.1.1.1;
next	;

1.1.1.1
date	97.12.21.21.57.36;	author vanilla;	state Exp;
branches;
next	;


desc
@@


1.4
log
@Switch exporter over
@
text
@
$FreeBSD: head/biology/babel/files/patch-ab 300895 2012-07-14 12:56:14Z beat $

--- menus.c.orig	Tue Jan 21 16:52:36 1997
+++ menus.c	Sun Nov 18 16:43:32 2001
@@@@ -63,9 +63,9 @@@@
     }
   }
   printf("Input file name : ");
-  gets(InfileName);
+  fgets(InfileName, BUFF_SIZE, stdin);
   printf("Keywords : ");
-  gets(InputKeywords);
+  fgets(InputKeywords, BUFF_SIZE, stdin);
 
   if (strlen(InputKeywords) < 1)
     strcpy(InputKeywords,"KEYWORDS GO HERE");
@@@@ -108,11 +108,11 @@@@
     }
   }
   printf("Output file name : ");
-  gets(OutfileName);
+  fgets(OutfileName, BUFF_SIZE, stdin);
   if (has_keywords)
   {
     printf("Keywords : ");
-    gets(OutputKeywords);
+    fgets(OutputKeywords, BUFF_SIZE, stdin);
     if (strlen(OutputKeywords) < 1)
       strcpy(OutputKeywords,"KEYWORDS GO HERE");
   }
@@@@ -167,7 +167,7 @@@@
   while (done == FALSE)
   {
     printf("Choice : ");
-    gets(choice_string);
+    fgets(choice_string, sizeof(choice_string), stdin);
     for (i = 0; i < (int) strlen(choice_string); i++)
     {
       if (!isdigit(choice_string[i]))
@


1.3
log
@* Replace pkg-message about setting BABEL_DIR with a wrapper script
  that does.
* Remove misleading full path name from usage message.
* Improve fgets() usage.
* Add converters category.
* Improve pkg-comment and pkg-descr.
@
text
@d2 1
a2 1
$FreeBSD$
@


1.2
log
@Move pkg/INSTALL to pkg/MESSAGE, add another patch from maintainer.
PR:		ports/5361
Reviewed by:	asami
Submitted by:	maintainer
@
text
@d1 5
a5 2
--- menus.c.orig	Tue Jan 21 23:52:36 1997
+++ menus.c	Mon Dec 22 14:29:37 1997
d11 1
a11 1
+  fgets(InfileName, BUFF_SIZE - 1, stdin);
d14 1
a14 1
+  fgets(InputKeywords, BUFF_SIZE - 1, stdin);
d23 1
a23 1
+  fgets(OutfileName, BUFF_SIZE - 1, stdin);
d28 1
a28 1
+    fgets(OutputKeywords, BUFF_SIZE - 1, stdin);
d32 1
a32 1
@@@@ -167,8 +167,8 @@@@
d37 2
a38 3
-    for (i = 0; i < (int) strlen(choice_string); i++)
+    fgets(choice_string, 99, stdin);
+    for (i = 0; i < ((int) strlen(choice_string) - 1) ; i++)
a40 1
 	choice = 0;
@


1.1
log
@Initial revision
@
text
@d1 2
a2 2
--- menus.c.orig	Thu Dec  4 20:20:28 1997
+++ menus.c	Thu Dec  4 20:21:46 1997
d29 1
a29 1
@@@@ -167,7 +167,7 @@@@
d34 1
d36 1
a36 1
     for (i = 0; i < (int) strlen(choice_string); i++)
d39 1
@


1.1.1.1
log
@This is a port of a molecular file format converter, babel.
Babel is developed by Dolata Group, Department of Chemistry,
University of Arizona and Ohio State University.
PR:		ports/5215
Submitted by:	Frank Chen Hsiung Chan <frankch@@waru.life.nthu.edu.tw>
@
text
@@
