fixed char* manipulation warnings