From: Mark Andrews Date: Thu, 16 Jan 2014 00:46:28 +0000 (+1100) Subject: cast to unsigned char X-Git-Tag: v9.10.0a2~79 X-Git-Url: http://git.ipfire.org/gitweb/?a=commitdiff_plain;h=64819a98a9b54ffe4db1354341ba01fdd74caf62;p=thirdparty%2Fbind9.git cast to unsigned char --- diff --git a/lib/isc/tm.c b/lib/isc/tm.c index 9f19f0727c8..713ce0e5378 100644 --- a/lib/isc/tm.c +++ b/lib/isc/tm.c @@ -161,8 +161,8 @@ isc_tm_strptime(const char *buf, const char *fmt, struct tm *tm) { alt_format = 0; /* Eat up white-space. */ - if (isspace((int) c)) { - while (isspace((int) *bp)) + if (isspace((unsigned char) c)) { + while (isspace((unsigned char) *bp)) bp++; fmt++; @@ -427,7 +427,7 @@ literal: case 'n': /* Any kind of white-space. */ case 't': LEGAL_ALT(0); - while (isspace((int) *bp)) + while (isspace((unsigned char) *bp)) bp++; break;