summaryrefslogtreecommitdiff
path: root/sbin/fsck/preen.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2013-11-22 04:14:02 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2013-11-22 04:14:02 +0000
commit7fb2abb7be130c0872ce3cb08b91db59a86f274f (patch)
tree256e0ddf5bf03b2630f7270cdae221080a2ad8bc /sbin/fsck/preen.c
parentf34a9f0a9d06ba7a8b2ff945df3a26db7970c69b (diff)
Whole bunch of (unsigned char) casts carefully added for ctype calls.
Careful second audit by millert
Diffstat (limited to 'sbin/fsck/preen.c')
-rw-r--r--sbin/fsck/preen.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/fsck/preen.c b/sbin/fsck/preen.c
index fc4993ef5f9..342695c75c6 100644
--- a/sbin/fsck/preen.c
+++ b/sbin/fsck/preen.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: preen.c,v 1.18 2010/11/29 17:28:29 ckuethe Exp $ */
+/* $OpenBSD: preen.c,v 1.19 2013/11/22 04:14:00 deraadt Exp $ */
/* $NetBSD: preen.c,v 1.15 1996/09/28 19:21:42 christos Exp $ */
/*
@@ -245,7 +245,7 @@ finddisk(const char *name)
struct diskentry *d;
for (p = name + strlen(name) - 1; p >= name; --p)
- if (isdigit(*p)) {
+ if (isdigit((unsigned char)*p)) {
len = p - name + 1;
break;
}