Converted tempSurface from string to char*