/
uis
/
git
/
x
/
uis
/
git
/
git.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
strbuf: introduce strbuf_getline_{lf,nul}()
[git/git.git]
/
credential.c
diff --git
a/credential.c
b/credential.c
index
b146ad8
..
7d6501d
100644
(file)
--- a/
credential.c
+++ b/
credential.c
@@
-142,7
+142,7
@@
int credential_read(struct credential *c, FILE *fp)
{
struct strbuf line = STRBUF_INIT;
- while (strbuf_getline
(&line, fp, '\n'
) != EOF) {
+ while (strbuf_getline
_lf(&line, fp
) != EOF) {
char *key = line.buf;
char *value = strchr(key, '=');