Browse Source
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>maint
Erik Faye-Lund
14 years ago
committed by
Junio C Hamano
1 changed files with 3 additions and 1 deletions
Loading…
Reference in new issue