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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user