/
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]
/
ident.c
diff --git
a/ident.c
b/ident.c
index
daf7e1e
..
9dd3ae3
100644
(file)
--- a/
ident.c
+++ b/
ident.c
@@
-76,7
+76,7
@@
static int add_mailname_host(struct strbuf *buf)
strerror(errno));
return -1;
}
- if (strbuf_getline
(&mailnamebuf, mailname, '\n'
) == EOF) {
+ if (strbuf_getline
_lf(&mailnamebuf, mailname
) == EOF) {
if (ferror(mailname))
warning("cannot read /etc/mailname: %s",
strerror(errno));