From 21dd614f6ba7970c890e6a77bd77499d334041f0 Mon Sep 17 00:00:00 2001 From: Bryce Kwon Date: Sat, 31 Oct 2026 13:51:20 -0700 Subject: Allocate formatted strings with git's xstrfmt --- source/ui-patch.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/ui-patch.c') diff --git a/source/ui-patch.c b/source/ui-patch.c index 0163e25..9cf61c0 100644 --- a/source/ui-patch.c +++ b/source/ui-patch.c @@ -104,7 +104,7 @@ void cgit_print_patch(const char *new_rev, const char *old_rev, const char *pref // the path comes from the request and a long one would abort the // process. if (prefix) - rev.diffopt.stat_sep = cgit_fmtalloc("(limited to '%s')\n\n", prefix); + rev.diffopt.stat_sep = xstrfmt("(limited to '%s')\n\n", prefix); setup_revisions(rev_argv.nr, rev_argv.v, &rev, NULL); // A single commit resolves to a range starting at its parent, so this // only ever cuts an explicit range short and keeps one request from -- cgit