=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/bdes/Attic/bdes.c,v retrieving revision 1.17 retrieving revision 1.18 diff -u -r1.17 -r1.18 --- src/usr.bin/bdes/Attic/bdes.c 2011/01/20 22:12:42 1.17 +++ src/usr.bin/bdes/Attic/bdes.c 2013/11/25 18:02:50 1.18 @@ -1,4 +1,4 @@ -/* $OpenBSD: bdes.c,v 1.17 2011/01/20 22:12:42 jasper Exp $ */ +/* $OpenBSD: bdes.c,v 1.18 2013/11/25 18:02:50 deraadt Exp $ */ /* $NetBSD: bdes.c,v 1.2 1995/03/26 03:33:19 glass Exp $ */ /*- @@ -430,13 +430,13 @@ /* * skip white space */ - while (isspace(*s)) + while (isspace((unsigned char)*s)) s++; /* * get the integer */ for (p = s; *p; p++) { - if (isdigit(*p)) + if (isdigit((unsigned char)*p)) n = n * 10 + *p - '0'; else { err(1, "bad decimal digit in MAC length");