diff options
| author | 2013-11-23 17:30:29 +0000 | |
|---|---|---|
| committer | 2013-11-23 17:30:29 +0000 | |
| commit | ff8d6ff9e817df7271575a7a14aa25c722920b64 (patch) | |
| tree | 6e1826ee1a5e6943b4dc03fef7d5740c26ced691 | |
| parent | obvious unsigned char casts for ctype (diff) | |
| download | wireguard-openbsd-ff8d6ff9e817df7271575a7a14aa25c722920b64.tar.xz wireguard-openbsd-ff8d6ff9e817df7271575a7a14aa25c722920b64.zip | |
obvious unsigned casts for ctype
| -rw-r--r-- | usr.bin/cut/cut.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/cut/cut.c b/usr.bin/cut/cut.c index 6bddb6c1fa9..9590800b93d 100644 --- a/usr.bin/cut/cut.c +++ b/usr.bin/cut/cut.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cut.c,v 1.15 2010/01/23 00:32:12 schwarze Exp $ */ +/* $OpenBSD: cut.c,v 1.16 2013/11/23 17:30:29 deraadt Exp $ */ /* $NetBSD: cut.c,v 1.9 1995/09/02 05:59:23 jtc Exp $ */ /* @@ -139,13 +139,13 @@ get_list(char *list) ++p; setautostart = 1; } - if (isdigit(*p)) { + if (isdigit((unsigned char)*p)) { start = stop = strtol(p, &p, 10); if (setautostart && start > autostart) autostart = start; } if (*p == '-') { - if (isdigit(p[1])) + if (isdigit((unsigned char)p[1])) stop = strtol(p + 1, &p, 10); if (*p == '-') { ++p; |
