Merge branch 'jc/merge-x-theirs-docfix'
[gitweb.git] / builtin / gc.c
index c22787ac723c421b17032ecf0b718ff434203c86..3c5eae0edf12e461e84c71c0e2988fcfa58d3d44 100644 (file)
@@ -258,7 +258,7 @@ static const char *lock_repo_for_gc(int force, pid_t* ret_pid)
                int should_exit;
 
                if (!scan_fmt)
-                       scan_fmt = xstrfmt("%s %%%dc", "%"SCNuMAX, HOST_NAME_MAX);
+                       scan_fmt = xstrfmt("%s %%%ds", "%"SCNuMAX, HOST_NAME_MAX);
                fp = fopen(pidfile_path, "r");
                memset(locking_host, 0, sizeof(locking_host));
                should_exit =