=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/head/head.c,v retrieving revision 1.15 retrieving revision 1.16 diff -u -r1.15 -r1.16 --- src/usr.bin/head/head.c 2009/10/27 23:59:38 1.15 +++ src/usr.bin/head/head.c 2013/11/26 13:21:17 1.16 @@ -1,4 +1,4 @@ -/* $OpenBSD: head.c,v 1.15 2009/10/27 23:59:38 deraadt Exp $ */ +/* $OpenBSD: head.c,v 1.16 2013/11/26 13:21:17 deraadt Exp $ */ /* * Copyright (c) 1980, 1987 Regents of the University of California. @@ -54,7 +54,8 @@ char *p = NULL; /* handle obsolete -number syntax */ - if (argc > 1 && argv[1][0] == '-' && isdigit(argv[1][1])) { + if (argc > 1 && argv[1][0] == '-' && + isdigit((unsigned char)argv[1][1])) { p = argv[1] + 1; argc--; argv++;