diff options
author | mmcc <mmcc@cvs.openbsd.org> | 2015-11-02 20:25:43 +0000 |
---|---|---|
committer | mmcc <mmcc@cvs.openbsd.org> | 2015-11-02 20:25:43 +0000 |
commit | 76a6c3c6fa09e02f667ec4d1cd54c825397c78b8 (patch) | |
tree | 864a577abe20fafd954abe04536e8f8987596119 /usr.bin | |
parent | 8ba9487be38f395f8fb549e33c8ec1fc65854222 (diff) |
Cast isdigit()'s argument to an unsigned char.
ok millert@, jca@
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/uniq/uniq.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/uniq/uniq.c b/usr.bin/uniq/uniq.c index 9404c7d738a..43e462e1463 100644 --- a/usr.bin/uniq/uniq.c +++ b/usr.bin/uniq/uniq.c @@ -1,4 +1,4 @@ -/* $OpenBSD: uniq.c,v 1.22 2015/10/09 01:37:09 deraadt Exp $ */ +/* $OpenBSD: uniq.c,v 1.23 2015/11/02 20:25:42 mmcc Exp $ */ /* $NetBSD: uniq.c,v 1.7 1995/08/31 22:03:48 jtc Exp $ */ /* @@ -214,7 +214,7 @@ obsolete(char *argv[]) return; } else if (ap[1] == '-') return; - if (!isdigit(ap[1])) + if (!isdigit((unsigned char)ap[1])) continue; /* * Digit signifies an old-style option. Malloc space for dash, |