From 3e311b4e6d2fc01472380d99fd03d794bdf7829d Mon Sep 17 00:00:00 2001 From: "me@ow.nekobit.net" Date: Wed, 20 Apr 2022 17:34:02 +0000 Subject: [PATCH] Replace in whole string FossilOrigin-Name: 669b709a71efd8baa23291fdc8670a77bfde04bd22e5423dabd4586647f63ea2 --- src/status.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/status.c b/src/status.c index ea60bb8..8f079b9 100644 --- a/src/status.c +++ b/src/status.c @@ -220,7 +220,7 @@ char* greentextify(char* content) reg_string[gt_len] = '\0'; easprintf(>_string, "%s", 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);