Skip to content

Commit c67461f

Browse files
committed
replace even if in middle of string
1 parent 58c517c commit c67461f

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

tool/build/renamestr.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -449,14 +449,8 @@ int main(int argc, char *argv[]) {
449449
struct Param *param = &(params.p[i]);
450450
for (param->roloc = NEXT_ROLOC(param); param->roloc != NULL;
451451
param->roloc = NEXT_ROLOC(param)) {
452-
if (param->roloc == rostart ||
453-
param->roloc[-1] == '\0') { // confirm start of string
454452
ReplaceString(param);
455453
param->count++;
456-
} else {
457-
// in the middle of a string, so move forward
458-
param->roloc += param->from_len;
459-
}
460454
}
461455
}
462456
#undef NEXT_ROLOC

0 commit comments

Comments
 (0)