mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-06-27 14:58: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);
|
||||
#endif
|
||||
strcpy(param->roloc, targstr);
|
||||
param->roloc += len;
|
||||
param->roloc += param->to_len;
|
||||
free(targstr);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue