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-commit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/ui-commit.c') diff --git a/source/ui-commit.c b/source/ui-commit.c index c6071ff..9b2f8b9 100644 --- a/source/ui-commit.c +++ b/source/ui-commit.c @@ -266,7 +266,7 @@ void cgit_print_commit(char *hex, const char *prefix) load_ref_decorations(NULL, DECORATE_FULL_REFS); - ctx.page.title = cgit_fmtalloc("%s - %s", info->subject, ctx.page.title); + ctx.page.title = xstrfmt("%s - %s", info->subject, ctx.page.title); cgit_print_layout_start(); // An octopus merge draws no diff, so it has no options to offer. if (commit_list_count(commit->parents) < OCTOPUS_PARENTS) -- cgit