Fix reference to char* ptr