On Mon, May 21, 2012 at 12:23:53AM +0900, MORITA Kazutaka wrote: > This patch also fixes a problem that local_get_store_list() doesn't > set a null terminated string. I took a quick look at the strbuf code but can't see any explanation how the extra byte that it apparenly makes sure is always allocated is set to 0. Any chance we could get a bit of documentation for this code? Also how do we know the buffer we copy the strbuf to is guaranteed to be large enough? |