Runtime - Datatype size mismatch

Size_t is sometimes 4 bytes and sometimes 8.  Use sizeof(size_t).