fix memccpy to not access buffer past given size
memccpy would return a pointer over the given size when c is not found in the source buffer and n reaches 0.
Showing
想要评论请 注册 或 登录
memccpy would return a pointer over the given size when c is not found in the source buffer and n reaches 0.