refspec: convert valid_fetch_refspec to use parse_refspec
[gitweb.git] / fsmonitor.c
index 2b4d3bb0a250642e5ea3479fad217683bd7b0b0f..ed3d1a074d60309063d16044bfd83beb78ef0e9d 100644 (file)
@@ -104,7 +104,7 @@ static int query_fsmonitor(int version, uint64_t last_update, struct strbuf *que
        if (!(argv[0] = core_fsmonitor))
                return -1;
 
-       snprintf(ver, sizeof(version), "%d", version);
+       snprintf(ver, sizeof(ver), "%d", version);
        snprintf(date, sizeof(date), "%" PRIuMAX, (uintmax_t)last_update);
        argv[1] = ver;
        argv[2] = date;