Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Commits on Apr 11, 2011
  1. Erik Faye-Lund Junio C Hamano

    strbuf: make sure buffer is zero-terminated

    kusma authored gitster committed
    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 <>
    Acked-by: Jeff King <>
    Signed-off-by: Junio C Hamano <>
Something went wrong with that request. Please try again.