fix void* -> char* issue