Make the char * parameter as const char *