mirror of
https://codeberg.org/grunfink/snac2.git
synced 2024-11-15 01:55:03 +00:00
Fixed bug in xs_replace_i().
This commit is contained in:
parent
48a50770f4
commit
25258ed379
1 changed files with 1 additions and 1 deletions
2
xs.h
2
xs.h
|
@ -278,7 +278,7 @@ d_char *xs_replace_i(d_char *str, const char *sfrom, const char *sto)
|
||||||
str = xs_expand(str, n_offset, stsz);
|
str = xs_expand(str, n_offset, stsz);
|
||||||
memcpy(str + n_offset, sto, stsz);
|
memcpy(str + n_offset, sto, stsz);
|
||||||
|
|
||||||
offset = n_offset;
|
offset = n_offset + stsz;
|
||||||
}
|
}
|
||||||
|
|
||||||
return str;
|
return str;
|
||||||
|
|
Loading…
Reference in a new issue