]> gitweb.ps.run Git - ps-cgit/blobdiff - ui-plain.c
Use GIT-1.7.3
[ps-cgit] / ui-plain.c
index 66cb19cdbd1058e37e60157c40a18d1a782bb3ff..5569a7cb3b107188385f45a96cde0e044e424f14 100644 (file)
@@ -35,7 +35,7 @@ static void print_object(const unsigned char *sha1, const char *path)
        ctx.page.mimetype = NULL;
        ext = strrchr(path, '.');
        if (ext && *(++ext)) {
        ctx.page.mimetype = NULL;
        ext = strrchr(path, '.');
        if (ext && *(++ext)) {
-               mime = string_list_lookup(ext, &ctx.cfg.mimetypes);
+               mime = string_list_lookup(&ctx.cfg.mimetypes, ext);
                if (mime)
                        ctx.page.mimetype = (char *)mime->util;
        }
                if (mime)
                        ctx.page.mimetype = (char *)mime->util;
        }