Change char pointer to const char pointer