--- nfbtrans.c.orig Wed Aug 19 16:30:14 1998 +++ nfbtrans.c Sun Aug 30 08:34:55 1998 @@ -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 #include #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 @@ -4731,7 +4733,12 @@ for (;;) { fprintf(stderr, "Enter dictionary word to skip: "); +#ifdef freebsd + fgets(temp, sizeof(temp), stdin); + temp[strlen(temp)-1] = '\0'; +#else gets(temp); +#endif if (!temp[0]) break; /* skip, don't store as rejected */ strupr(temp); @@ -5242,7 +5249,12 @@ for (;;) { fprintf(stderr, "enter word to exit: "); +#ifdef freebsd + fgets(field, (sizeof(field_) - (field - field_)), stdin); + field[strlen(field-1)] = '\0'; +#else gets(field); +#endif if (strlen(field) < 2) break; strupr(field);