Skip to content

Commit 2c54e2d

Browse files
dschoGit for Windows Build Agent
authored and
Git for Windows Build Agent
committed
Merge pull request #3561 from martelletto/trim-cr
gpg-interface: trim CR from ssh-keygen -Y find-principals
2 parents 07aa886 + 9aeddd0 commit 2c54e2d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gpg-interface.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -497,7 +497,7 @@ static int verify_ssh_signed_buffer(struct signature_check *sigc,
497497
if (!*line)
498498
break;
499499

500-
trust_size = strcspn(line, "\n");
500+
trust_size = strcspn(line, "\r\n");
501501
principal = xmemdupz(line, trust_size);
502502

503503
child_process_init(&ssh_keygen);

0 commit comments

Comments
 (0)