提交 b693f941 编写于 作者: B Bodo Möller

Consistency fix in BUF_MEM_grow: Initialise to zero when new memory

had to be allocated, not just when reusing the existing buffer.
上级 c602e7f4
......@@ -118,8 +118,9 @@ int BUF_MEM_grow(BUF_MEM *str, int len)
else
{
str->data=ret;
str->length=len;
str->max=n;
memset(&str->data[str->length],0,len-str->length);
str->length=len;
}
return(len);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册