dir.c: use ALLOC_GROW() in create_simplify()
[gitweb.git] / fetch-pack.c
index d52de74c4b1f1a4cfcda756918d310e475c4c12c..90fdd49821a1d6d3e104124444e37ac4b9b03fa2 100644 (file)
@@ -506,7 +506,7 @@ static void filter_refs(struct fetch_pack_args *args,
                next = ref->next;
 
                if (!memcmp(ref->name, "refs/", 5) &&
-                   check_refname_format(ref->name + 5, 0))
+                   check_refname_format(ref->name, 0))
                        ; /* trash */
                else {
                        while (i < nr_sought) {