Shouldn't have the char * cast, and should assign to a const char *