Fix cast-after-dereference
Original code was dereferencing a char*, then casting the value to size_t. Should cast the pointer to size_t* then deference.
Loading
Original code was dereferencing a char*, then casting the value to size_t. Should cast the pointer to size_t* then deference.