Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
strbuf_readlink: use ssize_t
[gitweb.git]
/
strbuf.c
diff --git
a/strbuf.c
b/strbuf.c
index 6ff1f80129b98a31f07cbf3ff52b4b9fe485aab0..db9069c937a6d3c05b5ab0243a6b41bfd1f6518e 100644
(file)
--- a/
strbuf.c
+++ b/
strbuf.c
@@
-469,7
+469,7
@@
int strbuf_readlink(struct strbuf *sb, const char *path, size_t hint)
hint = 32;
while (hint < STRBUF_MAXLINK) {
-
in
t len;
+
ssize_
t len;
strbuf_grow(sb, hint);
len = readlink(path, sb->buf, hint);