From 47eac0cdad2110c5a82904410f34a9025cf92c73 Mon Sep 17 00:00:00 2001 From: Gautham Date: Fri, 27 Dec 2024 23:05:46 -0600 Subject: [PATCH] handle multiple replacements nearby --- tool/build/renamestr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tool/build/renamestr.c b/tool/build/renamestr.c index 328408075..d93414c38 100644 --- a/tool/build/renamestr.c +++ b/tool/build/renamestr.c @@ -413,7 +413,7 @@ static void ReplaceString(struct Param *param) { kprintf("'%s' should be '%s'\n", param->roloc, targstr); #endif strcpy(param->roloc, targstr); - param->roloc += len; + param->roloc += param->to_len; free(targstr); }