summaryrefslogtreecommitdiff
path: root/config.c
diff options
context:
space:
mode:
authorErik Faye-Lund <kusmabite@gmail.com>2011-04-10 20:54:17 (GMT)
committerJunio C Hamano <gitster@pobox.com>2011-04-11 21:10:05 (GMT)
commit5e7a5d97f8a74181634a70e0e7b1464855c5af2d (patch)
tree8d0b9376618d91fd6940ac801bc22fb2c7e29a59 /config.c
parente923eaeb901ff056421b9007adcbbce271caa7b6 (diff)
downloadgit-5e7a5d97f8a74181634a70e0e7b1464855c5af2d.zip
git-5e7a5d97f8a74181634a70e0e7b1464855c5af2d.tar.gz
git-5e7a5d97f8a74181634a70e0e7b1464855c5af2d.tar.bz2
strbuf: make sure buffer is zero-terminated
strbuf_init does not zero-terminate the initial buffer when hint is non-zero. Fix this so we can rely on the string to be zero-terminated even if we haven't filled it with anything yet. Signed-off-by: Erik Faye-Lund <kusmabite@gmail.com> Acked-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'config.c')
0 files changed, 0 insertions, 0 deletions