mirror of
https://codeberg.org/grunfink/snac2.git
synced 2024-11-10 03:50:38 +03:00
Fixed bug in xs_replace_i().
This commit is contained in:
parent
48a50770f4
commit
25258ed379
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 New Issue
Block a user