fix memccpy to not access buffer past given size
authorQuentin Rameau <quinq@fifth.space>
Sun, 11 Nov 2018 08:25:26 +0000 (09:25 +0100)
committerRich Felker <dalias@aerifal.cx>
Sun, 2 Dec 2018 14:24:15 +0000 (09:24 -0500)
commitd9bdfd1644320ab916ea31d95da4bf641042209a
tree0e0bc5200c4d52dbea7ee61c5b1b44ecb7c64391
parent39ef612aa193cc6e954ac5a01574300ccd4b7ef9
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.
src/string/memccpy.c