wrong sizeof argument
revert part of 835d3f6 in commented lines
Illegal access to memory - Uninitialized pointer read