Skip to content

Commit 07efafe

Browse files
committed
Merge branch 'js/tag'
* js/tag: verify-tag: also grok CR/LFs in the tag signature
2 parents 23d2338 + fec60a2 commit 07efafe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

builtin-verify-tag.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ static int run_gpg_verify(const char *buf, unsigned long size, int verbose)
3535

3636
/* find the length without signature */
3737
len = 0;
38-
while (len < size && prefixcmp(buf + len, PGP_SIGNATURE "\n")) {
38+
while (len < size && prefixcmp(buf + len, PGP_SIGNATURE)) {
3939
eol = memchr(buf + len, '\n', size - len);
4040
len += eol ? eol - (buf + len) + 1 : size - len;
4141
}

0 commit comments

Comments
 (0)