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
This commit is contained in:
Love Hörnquist Åstrand
2005-09-13 20:19:11 +00:00
parent be827bd01d
commit 52ec27616b

View File

@@ -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 */