diff options
| author | Tim J. Robbins <tjr@FreeBSD.org> | 2004-07-16 05:10:46 +0000 |
|---|---|---|
| committer | Tim J. Robbins <tjr@FreeBSD.org> | 2004-07-16 05:10:46 +0000 |
| commit | 911a3ff97bc89d2f4e2103d2e5296cf1efab29cb (patch) | |
| tree | 4f79ca781b0360df6a4a78409e474d23c0c5aa38 /usr.bin/jot | |
| parent | f1f7aaab59d4f3e79e7d010dcf5bc2a9726af030 (diff) | |
Notes
Diffstat (limited to 'usr.bin/jot')
| -rw-r--r-- | usr.bin/jot/jot.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/jot/jot.c b/usr.bin/jot/jot.c index 9314a7e31fec..f3f74235a966 100644 --- a/usr.bin/jot/jot.c +++ b/usr.bin/jot/jot.c @@ -344,7 +344,7 @@ getprec(char *str) if (!*p) return (0); for (q = ++p; *p; p++) - if (!isdigit(*p)) + if (!isdigit((unsigned char)*p)) break; return (p - q); } @@ -381,8 +381,8 @@ getformat(void) */ p2 = p++; dot = hash = space = sign = numbers = 0; - while (!isalpha(*p)) { - if (isdigit(*p)) { + while (!isalpha((unsigned char)*p)) { + if (isdigit((unsigned char)*p)) { numbers++; p++; } else if ((*p == '#' && !(numbers|dot|sign|space| |
