c = strdup(p);
for (i = 0; i < strlen(c); i++)
- c[i] = tolower(c[i]);
+ c[i] = tolower((unsigned char)c[i]);
if (!strncmp("us", c, 2) || !strncmp("usec", c, 4))
mult = 1;
c = strdup(p);
for (i = 0; i < strlen(c); i++) {
- c[i] = tolower(c[i]);
+ c[i] = tolower((unsigned char)c[i]);
if (is_separator(c[i])) {
c[i] = '\0';
break;