News for hackers. Stuff that matters.
Re:What Every C Programmer Should Know About Undefined Behav... by sonoffett on Saturday May 14, 2011 @11:49PM (#2549257)
The OP has since changed the article but IIRC `buffer` was an array of `int`s, in which case the `sizeof` operator would return 512. Generally you'd want `(i >= sizeof(buffer)/sizeof(buffer[0]))`.

There are no comments on this comment yet.