Re:Massacring C Pointers
by saagarjha on Tuesday June 26, 2018 @11:12AM
(#17401161)
strnlen_s takes a parameter for the maximum number of characters to scan. This way, it won’t overflow the buffer you provide it if there’s no trailing null byte.
[ Parent
| on HN ]
There are no comments on this comment yet.