From 52ec27616bc6ea3151ee9a8469bdbe0811065b63 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Love=20H=C3=B6rnquist=20=C3=85strand?= Date: Tue, 13 Sep 2005 20:19:11 +0000 Subject: [PATCH] cast to unsigned char to make sure its not negative when passing it to is* functions git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16062 ec53bebd-3082-4978-b11e-865c3cabbd6b --- lib/roken/strptime.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/roken/strptime.c b/lib/roken/strptime.c index 8d6fc7383..543864e9d 100644 --- a/lib/roken/strptime.c +++ b/lib/roken/strptime.c @@ -334,7 +334,7 @@ strptime (const char *buf, const char *format, struct tm *timeptr) timeptr->tm_min = ret; break; case 'n' : - while (isspace (*buf)) + while (isspace ((unsigned char)*buf)) buf++; break; case 'p' : @@ -365,7 +365,7 @@ strptime (const char *buf, const char *format, struct tm *timeptr) timeptr->tm_sec = ret; break; case 't' : - while (isspace (*buf)) + while (isspace ((unsigned char)*buf)) buf++; break; case 'T' : /* %H:%M:%S */