mirror of
https://github.com/git-for-windows/git.git
synced 2026-03-26 22:24:27 -05:00
Merge pull request #3561 from martelletto/trim-cr
gpg-interface: trim CR from ssh-keygen -Y find-principals
This commit is contained in:
@@ -509,7 +509,7 @@ static int verify_ssh_signed_buffer(struct signature_check *sigc,
|
||||
if (!*line)
|
||||
break;
|
||||
|
||||
trust_size = strcspn(line, "\n");
|
||||
trust_size = strcspn(line, "\r\n");
|
||||
principal = xmemdupz(line, trust_size);
|
||||
|
||||
child_process_init(&ssh_keygen);
|
||||
|
||||
Reference in New Issue
Block a user