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); }