cast to unsigned char to make sure its not negative when passing it to

to* functions


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14821 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Love Hörnquist Åstrand
2005-04-18 08:07:40 +00:00
parent e621738b3a
commit 0b59fd30dc

View File

@@ -213,8 +213,8 @@ strptime (const char *buf, const char *format, struct tm *timeptr)
char *s;
int ret;
if (isspace (c)) {
while (isspace (*buf))
if (isspace ((unsigned char)c)) {
while (isspace ((unsigned char)*buf))
++buf;
} else if (c == '%' && format[1] != '\0') {
c = *++format;