Message ID | pull.710.v3.git.git.1601731752695.gitgitgadget@gmail.com (mailing list archive) |
---|---|
State | Accepted |
Commit | 356c473295097f4aeaacc1a2dcd70271b7080788 |
Headers | show |
Series | [v3] credential: treat CR/LF as line endings in the credential protocol | expand |
diff --git a/credential.c b/credential.c index efc29dc5e1..e5202fbef2 100644 --- a/credential.c +++ b/credential.c @@ -202,7 +202,7 @@ int credential_read(struct credential *c, FILE *fp) { struct strbuf line = STRBUF_INIT; - while (strbuf_getline_lf(&line, fp) != EOF) { + while (strbuf_getline(&line, fp) != EOF) { char *key = line.buf; char *value = strchr(key, '=');