Fixed bug in xs_replace_i().

This commit is contained in:
default 2022-09-27 10:50:32 +02:00
parent 48a50770f4
commit 25258ed379

2
xs.h
View File

@ -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);
memcpy(str + n_offset, sto, stsz);
offset = n_offset;
offset = n_offset + stsz;
}
return str;