diff options
context:
space:
mode:
authorBryce Kwon <bryce@brycekwon.com>
committerBryce Kwon <bryce@brycekwon.com>
commit
parent
tree
download
Settle the names, types and layout of the sources
Diffstat (limited to '')
-rw-r--r--source/ui-summary.c4
1 file changed, 2 insertions, 2 deletions
diff --git a/source/ui-summary.c b/source/ui-summary.c
index 80d1e5b..2169048 100644
--- a/source/ui-summary.c
+++ b/source/ui-summary.c
@@ -81,7 +81,7 @@ static char* append_readme_path(const char *filename, const char *ref, const cha
}
full_path = xstrdup(path);
} else
- full_path = fmtalloc("%s/%s", base_dir, path);
+ full_path = cgit_fmtalloc("%s/%s", base_dir, path);
if (!ref) {
resolved_base = realpath(base_dir, NULL);
@@ -110,7 +110,7 @@ void cgit_print_repo_readme(const char *path)
char *filename, *ref, *mimetype;
int free_filename = 0;
- mimetype = get_mimetype_for_filename(path);
+ mimetype = cgit_get_mimetype_for_filename(path);
if (mimetype && (!strncmp(mimetype, "image/", 6) || !strncmp(mimetype, "video/", 6))) {
ctx.page.mimetype = mimetype;
ctx.page.charset = NULL;