Closed larsmans closed 12 years ago
I was bored and decided to do some C++ hacking. I caught you using malloc without testing its return value! :)
malloc
Also:
strlcpy
memcpy
sizeof(char) == 1
Thanks Lars! I'll look into it tomorrow.
I was bored and decided to do some C++ hacking. I caught you using
malloc
without testing its return value! :)Also:
strlcpy
, usememcpy
insteadmalloc
, that hides bugs!sizeof(char) == 1
per definition in the C++ standard