Also, use static_cast when casting from void* to char*.