Fix problem with invalid conversion from ‘char*’ to ‘int’.