1
0
mirror of https://github.com/openbsd/src.git synced 2025-01-10 06:47:55 -08:00

Cast isdigit()'s argument to unsigned char.

ok guenther@
This commit is contained in:
mmcc 2015-10-24 17:33:05 +00:00
parent 8059d61abf
commit 0cc1293efb

View File

@ -1,4 +1,4 @@
/* $OpenBSD: pom.c,v 1.17 2015/10/14 08:12:12 doug Exp $ */
/* $OpenBSD: pom.c,v 1.18 2015/10/24 17:33:05 mmcc Exp $ */
/* $NetBSD: pom.c,v 1.6 1996/02/06 22:47:29 jtc Exp $ */
/*
@ -208,7 +208,7 @@ parsetime(char *p)
char *t;
for (t = p; *t; ++t) {
if (isdigit(*t))
if (isdigit((unsigned char)*t))
continue;
badformat();
}