News for hackers. Stuff that matters.
Re:Git's list of banned C functions by Sohcahtoa82 on Friday March 05, 2021 @01:29PM (#26360130)
> struct foo ptr = malloc(sizeof ptr); // should be sizeof ptr!!

This is why whenever I use sizeof, I pass a type, not a variable.

There are no comments on this comment yet.