handle multiple replacements nearby

This commit is contained in:
Gautham 2024-12-27 23:05:46 -06:00
parent f5acfbab44
commit 47eac0cdad

View file

@ -413,7 +413,7 @@ static void ReplaceString(struct Param *param) {
kprintf("'%s' should be '%s'\n", param->roloc, targstr); kprintf("'%s' should be '%s'\n", param->roloc, targstr);
#endif #endif
strcpy(param->roloc, targstr); strcpy(param->roloc, targstr);
param->roloc += len; param->roloc += param->to_len;
free(targstr); free(targstr);
} }