diff options
| author | rsc <devnull@localhost> | 2005-10-31 16:42:32 +0000 |
|---|---|---|
| committer | rsc <devnull@localhost> | 2005-10-31 16:42:32 +0000 |
| commit | 74374cc8a40c450423785015c2e30d5a2ed2920c (patch) | |
| tree | 1d8a5ca97056a320115a342fd251aa0cf0cda751 /src/cmd/troff/dwbinit.c | |
| parent | b330c942b468ab82fd8853590145187e859258cb (diff) | |
| download | plan9port-74374cc8a40c450423785015c2e30d5a2ed2920c.tar.gz plan9port-74374cc8a40c450423785015c2e30d5a2ed2920c.zip | |
ctype sign fixes (Tom Miller)
Diffstat (limited to 'src/cmd/troff/dwbinit.c')
| -rw-r--r-- | src/cmd/troff/dwbinit.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/cmd/troff/dwbinit.c b/src/cmd/troff/dwbinit.c index 59f74ec8..9c1845b0 100644 --- a/src/cmd/troff/dwbinit.c +++ b/src/cmd/troff/dwbinit.c @@ -73,6 +73,7 @@ * */ +#include <u.h> #include <stdio.h> #include <ctype.h> #include <string.h> @@ -169,10 +170,10 @@ char *DWBhome(void) if ( (fp = fopen(DWBCONFIG, "r")) != NULL ) { len = strlen(DWBENV); while ( fgets(buf, sizeof(buf), fp) != NULL ) { - for ( ptr = buf; isspace(*ptr); ptr++ ) ; + for ( ptr = buf; isspace((uchar)*ptr); ptr++ ) ; if ( strncmp(ptr, DWBENV, len) == 0 && *(ptr+len) == '=' ) { path = ptr + len + 1; - for ( ptr = path; !isspace(*ptr) && *ptr != ';'; ptr++ ) ; + for ( ptr = path; !isspace((uchar)*ptr) && *ptr != ';'; ptr++ ) ; *ptr = '\0'; if ( home != NULL ) free(home); |
