diff options
| author | 2022-09-27 10:50:32 +0200 | |
|---|---|---|
| committer | 2022-09-27 10:50:32 +0200 | |
| commit | 25258ed379a16a72778ed45cca2a297483d002e6 (patch) | |
| tree | 5fc68d416cd143620f41a9eba3dd83f2ee8b84ae | |
| parent | Use xs_replace_i() in some places. (diff) | |
| download | snac2-25258ed379a16a72778ed45cca2a297483d002e6.tar.gz snac2-25258ed379a16a72778ed45cca2a297483d002e6.tar.xz snac2-25258ed379a16a72778ed45cca2a297483d002e6.zip | |
Fixed bug in xs_replace_i().
| -rw-r--r-- | xs.h | 2 |
1 files changed, 1 insertions, 1 deletions
| @@ -278,7 +278,7 @@ d_char *xs_replace_i(d_char *str, const char *sfrom, const char *sto) | |||
| 278 | str = xs_expand(str, n_offset, stsz); | 278 | str = xs_expand(str, n_offset, stsz); |
| 279 | memcpy(str + n_offset, sto, stsz); | 279 | memcpy(str + n_offset, sto, stsz); |
| 280 | 280 | ||
| 281 | offset = n_offset; | 281 | offset = n_offset + stsz; |
| 282 | } | 282 | } |
| 283 | 283 | ||
| 284 | return str; | 284 | return str; |