GRIM: Replace index() with strchr().

This commit is contained in:
Giulio Camuffo 2012-02-28 10:29:18 +01:00
parent 806b01eeb3
commit f8c93eef39

View File

@ -189,7 +189,7 @@ static void parse(const char *line, const char *fmt, int field_count, va_list va
char *string = (char*)var;
for (; k < strlen(s) && k < fieldWidth; ++k) {
char c = s[k];
bool inSet = index(chars, c) != NULL;
bool inSet = strchr(chars, c) != NULL;
if ((circumflex && inSet) || (!circumflex && !inSet)) {
break;
}