--- detect-dce-opnum.c.orig 2015-04-07 13:23:46.631076145 -0700 +++ detect-dce-opnum.c 2015-04-07 13:24:29.036465652 -0700 @@ -171,7 +171,7 @@ * once we are done using it */ dup_str_head = dup_str; dup_str_temp = dup_str; - while ( (comma_token = index(dup_str, ',')) != NULL) { + while ( (comma_token = strchr(dup_str, ',')) != NULL) { comma_token[0] = '\0'; dup_str = comma_token + 1; @@ -179,7 +179,7 @@ if (dor == NULL) goto error; - if ((hyphen_token = index(dup_str_temp, '-')) != NULL) { + if ((hyphen_token = strchr(dup_str_temp, '-')) != NULL) { hyphen_token[0] = '\0'; hyphen_token++; dor->range1 = atoi(dup_str_temp); @@ -210,7 +210,7 @@ if (dor == NULL) goto error; - if ( (hyphen_token = index(dup_str, '-')) != NULL) { + if ( (hyphen_token = strchr(dup_str, '-')) != NULL) { hyphen_token[0] = '\0'; hyphen_token++; dor->range1 = atoi(dup_str);