Diff options
Diffstat (limited to 'source/ui-patch.c')
-rw-r--r--source/ui-patch.c2
1 file changed, 1 insertion, 1 deletion
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