Merge branch 'js/tag'
authorJunio C Hamano <gitster@pobox.com>
Sat, 15 Sep 2007 05:37:55 +0000 (22:37 -0700)
committerJunio C Hamano <gitster@pobox.com>
Sat, 15 Sep 2007 05:37:55 +0000 (22:37 -0700)
* js/tag:
verify-tag: also grok CR/LFs in the tag signature

builtin-verify-tag.c
index dfcfcd0455ce471a6120d11bcbdb7553de59f536..cc4c55d7ee35ceeaf8c4a857d5dad857a7eb2664 100644 (file)
@@ -35,7 +35,7 @@ static int run_gpg_verify(const char *buf, unsigned long size, int verbose)
 
        /* find the length without signature */
        len = 0;
-       while (len < size && prefixcmp(buf + len, PGP_SIGNATURE "\n")) {
+       while (len < size && prefixcmp(buf + len, PGP_SIGNATURE)) {
                eol = memchr(buf + len, '\n', size - len);
                len += eol ? eol - (buf + len) + 1 : size - len;
        }