News for hackers. Stuff that matters.
Re:Generate raw WAV output by hooking malloc and read by reubenmorais on Tuesday July 29, 2014 @03:55PM (#8104588)
I think his point is more about clamping the value than about using sizeof. It indicates the author expected that value to vary, but it doesn't.
Re:Generate raw WAV output by hooking malloc and read by fredophile on Tuesday July 29, 2014 @08:11PM (#8105722)
Depending on your application I can see where you might still want to clamp the result. However, I think you're right in this case since the clamped range doesn't make much sense here.