char* to char, fixes warning messages