From c67461f8f063cb60dc1fb2b1e2778a2b340a5e0e Mon Sep 17 00:00:00 2001 From: Gautham Date: Fri, 27 Dec 2024 23:02:23 -0600 Subject: [PATCH] replace even if in middle of string --- tool/build/renamestr.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/tool/build/renamestr.c b/tool/build/renamestr.c index 12713edeff2..8f2ceacf298 100644 --- a/tool/build/renamestr.c +++ b/tool/build/renamestr.c @@ -449,14 +449,8 @@ int main(int argc, char *argv[]) { struct Param *param = &(params.p[i]); for (param->roloc = NEXT_ROLOC(param); param->roloc != NULL; param->roloc = NEXT_ROLOC(param)) { - if (param->roloc == rostart || - param->roloc[-1] == '\0') { // confirm start of string ReplaceString(param); param->count++; - } else { - // in the middle of a string, so move forward - param->roloc += param->from_len; - } } } #undef NEXT_ROLOC