unsigned char-correctness
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@5269 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -84,7 +84,7 @@ parse_something (const char *s, const struct units *units,
|
||||
size_t u_len;
|
||||
unsigned partial;
|
||||
|
||||
while(isspace(*p) || *p == ',')
|
||||
while(isspace((unsigned char)*p) || *p == ',')
|
||||
++p;
|
||||
|
||||
val = strtod (p, &next); /* strtol(p, &next, 0); */
|
||||
@@ -93,7 +93,7 @@ parse_something (const char *s, const struct units *units,
|
||||
return -1;
|
||||
}
|
||||
p = next;
|
||||
while (isspace(*p))
|
||||
while (isspace((unsigned char)*p))
|
||||
++p;
|
||||
if (*p == '\0') {
|
||||
res = (*func)(res, val, def_mult);
|
||||
|
Reference in New Issue
Block a user