2000-02-18 06:53:12 +00:00
|
|
|
--- nfbtrans.c.orig Sun Nov 14 10:58:34 1999
|
|
|
|
+++ nfbtrans.c Fri Feb 18 15:00:00 2000
|
1998-08-30 02:32:23 +00:00
|
|
|
@@ -2,7 +2,9 @@
|
|
|
|
#define LINT_ARGS
|
|
|
|
#define DOS
|
|
|
|
#else
|
|
|
|
-#define UNIX_PATH "/usr/local/lib/"
|
|
|
|
+#ifndef UNIX_PATH
|
|
|
|
+#define UNIX_PATH "/usr/local/lib/nfbtrans/"
|
|
|
|
+#endif
|
2000-02-18 06:53:12 +00:00
|
|
|
#endif /* unix */
|
1998-08-30 02:32:23 +00:00
|
|
|
#ifndef lint
|
2000-02-18 06:53:12 +00:00
|
|
|
#endif /* lint */
|
1998-08-30 02:32:23 +00:00
|
|
|
@@ -24,7 +26,7 @@
|
|
|
|
#include <fcntl.h>
|
|
|
|
#include <stdarg.h>
|
|
|
|
#define MAXARGS 7
|
|
|
|
-#if defined(sunos) || defined(linux)
|
|
|
|
+#if defined(sunos) || defined(linux) || defined(freebsd)
|
|
|
|
#define max(a,b) (((a) > (b)) ? (a) : (b))
|
|
|
|
#define min(a,b) (((a) < (b)) ? (a) : (b))
|
|
|
|
#endif
|
2000-02-18 06:53:12 +00:00
|
|
|
@@ -4904,7 +4906,8 @@
|
1998-08-30 02:32:23 +00:00
|
|
|
for (;;)
|
|
|
|
{
|
|
|
|
fprintf(stderr, "Enter dictionary word <RETURN> to skip: ");
|
2000-02-18 06:53:12 +00:00
|
|
|
- gets(temp);
|
1998-08-30 02:32:23 +00:00
|
|
|
+ fgets(temp, sizeof(temp), stdin);
|
|
|
|
+ temp[strlen(temp)-1] = '\0';
|
|
|
|
if (!temp[0])
|
2000-02-18 06:53:12 +00:00
|
|
|
break; /* skip, don't store as rejected */
|
1998-08-30 02:32:23 +00:00
|
|
|
strupr(temp);
|
2000-02-18 06:53:12 +00:00
|
|
|
@@ -5437,7 +5440,8 @@
|
|
|
|
for (;;)
|
|
|
|
{
|
|
|
|
fprintf(stderr, "enter word <RETURN> to exit: ");
|
|
|
|
- gets(field);
|
1998-08-30 02:32:23 +00:00
|
|
|
+ fgets(field, (sizeof(field_) - (field - field_)), stdin);
|
|
|
|
+ field[strlen(field-1)] = '\0';
|
2000-02-18 06:53:12 +00:00
|
|
|
if (strlen(field) < 2)
|
|
|
|
break;
|
|
|
|
strupr(field);
|