X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=builtin-fsck.c;h=6abf498d2b391c97e9efcdb32da1cf3b5d566397;hb=7bd59dee5b4b42f2ed233141e33713a7f012dd22;hp=6da3814d59a2c04cbcc9853035f5d72c0a3a4928;hpb=d77ee72662a821d66ae218056f0103eb24d8d4b4;p=git.git diff --git a/builtin-fsck.c b/builtin-fsck.c index 6da3814d5..6abf498d2 100644 --- a/builtin-fsck.c +++ b/builtin-fsck.c @@ -546,7 +546,7 @@ static int fsck_head_link(void) if (!head_points_at || !(flag & REF_ISSYMREF)) return error("HEAD is not a symbolic ref"); - if (strncmp(head_points_at, "refs/heads/", 11)) + if (prefixcmp(head_points_at, "refs/heads/")) return error("HEAD points to something strange (%s)", head_points_at); if (is_null_sha1(sha1))