]> gitweb.ps.run Git - ps-cgit/blobdiff - cgit.c
fix errors in printf-style format strings
[ps-cgit] / cgit.c
diff --git a/cgit.c b/cgit.c
index d6146e2270737806513b0ceca0e187475f93c121..3b3f8d98a8a180d5d6ac9c87ed53e4b8f3263e25 100644 (file)
--- a/cgit.c
+++ b/cgit.c
@@ -610,7 +610,7 @@ static void process_cached_repolist(const char *path)
        hash = hash_str(path);
        if (ctx.cfg.project_list)
                hash += hash_str(ctx.cfg.project_list);
-       cached_rc = xstrdup(fmt("%s/rc-%8x", ctx.cfg.cache_root, hash));
+       cached_rc = xstrdup(fmt("%s/rc-%8lx", ctx.cfg.cache_root, hash));
 
        if (stat(cached_rc, &st)) {
                /* Nothing is cached, we need to scan without forking. And