aboutsummaryrefslogtreecommitdiffstats
path: root/textproc/nfbtrans/files/patch-ab
diff options
context:
space:
mode:
Diffstat (limited to 'textproc/nfbtrans/files/patch-ab')
-rw-r--r--textproc/nfbtrans/files/patch-ab36
1 files changed, 15 insertions, 21 deletions
diff --git a/textproc/nfbtrans/files/patch-ab b/textproc/nfbtrans/files/patch-ab
index 2608e9a78bb5..3f36aee1d651 100644
--- a/textproc/nfbtrans/files/patch-ab
+++ b/textproc/nfbtrans/files/patch-ab
@@ -1,5 +1,5 @@
---- nfbtrans.c.orig Wed Aug 19 16:30:14 1998
-+++ nfbtrans.c Sun Aug 30 08:34:55 1998
+--- nfbtrans.c.orig Sun Nov 14 10:58:34 1999
++++ nfbtrans.c Fri Feb 18 15:00:00 2000
@@ -2,7 +2,9 @@
#define LINT_ARGS
#define DOS
@@ -8,9 +8,9 @@
+#ifndef UNIX_PATH
+#define UNIX_PATH "/usr/local/lib/nfbtrans/"
+#endif
- #endif /* unix */
+ #endif /* unix */
#ifndef lint
- #endif /* lint */
+ #endif /* lint */
@@ -24,7 +26,7 @@
#include <fcntl.h>
#include <stdarg.h>
@@ -20,29 +20,23 @@
#define max(a,b) (((a) > (b)) ? (a) : (b))
#define min(a,b) (((a) < (b)) ? (a) : (b))
#endif
-@@ -4731,7 +4733,12 @@
+@@ -4904,7 +4906,8 @@
for (;;)
{
fprintf(stderr, "Enter dictionary word <RETURN> to skip: ");
-+#ifdef freebsd
+- gets(temp);
+ fgets(temp, sizeof(temp), stdin);
+ temp[strlen(temp)-1] = '\0';
-+#else
- gets(temp);
-+#endif
if (!temp[0])
- break; /* skip, don't store as rejected */
+ break; /* skip, don't store as rejected */
strupr(temp);
-@@ -5242,7 +5249,12 @@
- for (;;)
- {
- fprintf(stderr, "enter word <RETURN> to exit: ");
-+#ifdef freebsd
+@@ -5437,7 +5440,8 @@
+ for (;;)
+ {
+ fprintf(stderr, "enter word <RETURN> to exit: ");
+- gets(field);
+ fgets(field, (sizeof(field_) - (field - field_)), stdin);
+ field[strlen(field-1)] = '\0';
-+#else
- gets(field);
-+#endif
- if (strlen(field) < 2)
- break;
- strupr(field);
+ if (strlen(field) < 2)
+ break;
+ strupr(field);