fixed windows warnings related to truncating char