summaryrefslogtreecommitdiff
path: root/refs.c
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2009-05-25 10:46:09 (GMT)
committerJunio C Hamano <gitster@pobox.com>2009-05-25 18:34:02 (GMT)
commit3cd7388d57db4f4a29949e8de96493fb77059484 (patch)
treedfa546e4577ae9f13d6b2f7b18ddbb63b86e3a72 /refs.c
parent9619ff14159ab3401636b9883a715b0f20b051df (diff)
downloadgit-3cd7388d57db4f4a29949e8de96493fb77059484.zip
git-3cd7388d57db4f4a29949e8de96493fb77059484.tar.gz
git-3cd7388d57db4f4a29949e8de96493fb77059484.tar.bz2
convert bare readlink to strbuf_readlink
This particular readlink call never NUL-terminated its result, making it a potential source of bugs (though there is no bug now, as it currently always respects the length field). Let's just switch it to strbuf_readlink which is shorter and less error-prone. Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'refs.c')
0 files changed, 0 insertions, 0 deletions