X-Git-Url: http://pileus.org/git/?a=blobdiff_plain;f=bundle.c;h=4b0e5cd51b82f916c26d3776f81f22cdb3045fa6;hb=07e03d466531397f9a78534ccac98b61bbafbdd6;hp=505e07e93468b68454c7ec906f40eacea9746551;hpb=295e3938fc2e0a229958e2fb76eb8b66fcb3611d;p=~andy%2Fgit diff --git a/bundle.c b/bundle.c index 505e07e93..4b0e5cd51 100644 --- a/bundle.c +++ b/bundle.c @@ -57,7 +57,7 @@ static int parse_bundle_header(int fd, struct bundle_header *header, * followed by SP and subject line. */ if (get_sha1_hex(buf.buf, sha1) || - (40 <= buf.len && !isspace(buf.buf[40])) || + (buf.len > 40 && !isspace(buf.buf[40])) || (!is_prereq && buf.len <= 40)) { if (report_path) error(_("unrecognized header: %s%s (%d)"),