summaryrefslogtreecommitdiff
path: root/sbin/fsck/preen.c
diff options
context:
space:
mode:
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;
}