Re:Beware of strncpy and strncat
by docker_up on Wednesday June 06, 2018 @12:46PM
(#17248701)
No, only global variables are zero-initialized. Neither stack variables nor malloced memory will be zero-initialized. OP should have memset to 0 or calloced the memory.
[ Parent
| on HN ]
There are no comments on this comment yet.