mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-06-28 07:18:30 +00:00
handle multiple replacements nearby
This commit is contained in:
parent
f5acfbab44
commit
47eac0cdad
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue