diff options
Diffstat (limited to 'usr.bin/vgrind/vgrindefs.c')
-rw-r--r-- | usr.bin/vgrind/vgrindefs.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.bin/vgrind/vgrindefs.c b/usr.bin/vgrind/vgrindefs.c index c48a048..3c310a9 100644 --- a/usr.bin/vgrind/vgrindefs.c +++ b/usr.bin/vgrind/vgrindefs.c @@ -35,6 +35,8 @@ __FBSDID("$FreeBSD$"); #define MAXHOP 32 /* max number of tc= indirections */ #include <ctype.h> +#include <fcntl.h> +#include <string.h> #include <unistd.h> /* @@ -308,7 +310,7 @@ tdecode(register char *str, char **area) register int c; cp = *area; - while (c = *str++) { + while ((c = *str++)) { if (c == ':' && *(cp-1) != '\\') break; *cp++ = c; |