Cast const char* to char* to avoid compiler warning