=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/hexdump/odsyntax.c,v retrieving revision 1.21 retrieving revision 1.22 diff -c -r1.21 -r1.22 *** src/usr.bin/hexdump/odsyntax.c 2010/10/08 14:26:12 1.21 --- src/usr.bin/hexdump/odsyntax.c 2013/11/20 21:21:50 1.22 *************** *** 1,4 **** ! /* $OpenBSD: odsyntax.c,v 1.21 2010/10/08 14:26:12 sobrado Exp $ */ /* $NetBSD: odsyntax.c,v 1.15 2001/12/07 15:14:29 bjh21 Exp $ */ /*- --- 1,4 ---- ! /* $OpenBSD: odsyntax.c,v 1.22 2013/11/20 21:21:50 deraadt Exp $ */ /* $NetBSD: odsyntax.c,v 1.15 2001/12/07 15:14:29 bjh21 Exp $ */ /*- *************** *** 250,256 **** extensions: type_string++; y = 2; ! if (isupper(*type_string)) { switch(*type_string) { case 'C': nbytes = sizeof(char); --- 250,256 ---- extensions: type_string++; y = 2; ! if (isupper((unsigned char)*type_string)) { switch(*type_string) { case 'C': nbytes = sizeof(char); *************** *** 270,276 **** oldusage(); } type_string++; ! } else if (isdigit(*type_string)) nbytes = strtol(type_string, &type_string, 10); else nbytes = 4; --- 270,276 ---- oldusage(); } type_string++; ! } else if (isdigit((unsigned char)*type_string)) nbytes = strtol(type_string, &type_string, 10); else nbytes = 4;