Replace in whole string

FossilOrigin-Name: 669b709a71efd8baa23291fdc8670a77bfde04bd22e5423dabd4586647f63ea2
This commit is contained in:
me@ow.nekobit.net 2022-04-20 17:34:02 +00:00
parent 4c3c5d6cc6
commit 3e311b4e6d

View file

@ -220,7 +220,7 @@ char* greentextify(char* content)
reg_string[gt_len] = '\0';
easprintf(&gt_string, "<span class=\"greentext\">%s</span>", reg_string);
res = strrepl(res, reg_string, gt_string, 0);
res = strrepl(res, reg_string, gt_string, STRREPL_ALL );
if (oldres != content) free(oldres);
ind = re_results[2] + strlen(gt_string);
free(reg_string);