mirror of
https://git.FreeBSD.org/ports.git
synced 2024-10-30 21:49:25 +00:00
184f8d383d
- Added WWW: to the DESCR. Reminded by: KATO Tsuguru <tkato@prontomail.ne.jp> in PR: 16668 - Install some more docs and examples.
43 lines
1.1 KiB
Plaintext
43 lines
1.1 KiB
Plaintext
--- 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
|
|
#else
|
|
-#define UNIX_PATH "/usr/local/lib/"
|
|
+#ifndef UNIX_PATH
|
|
+#define UNIX_PATH "/usr/local/lib/nfbtrans/"
|
|
+#endif
|
|
#endif /* unix */
|
|
#ifndef lint
|
|
#endif /* lint */
|
|
@@ -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
|
|
@@ -4904,7 +4906,8 @@
|
|
for (;;)
|
|
{
|
|
fprintf(stderr, "Enter dictionary word <RETURN> to skip: ");
|
|
- gets(temp);
|
|
+ fgets(temp, sizeof(temp), stdin);
|
|
+ temp[strlen(temp)-1] = '\0';
|
|
if (!temp[0])
|
|
break; /* skip, don't store as rejected */
|
|
strupr(temp);
|
|
@@ -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';
|
|
if (strlen(field) < 2)
|
|
break;
|
|
strupr(field);
|