os2iconv.c (_createUconvObj): cast to unsigned char, to be safe.

This commit is contained in:
Ozkan Sezer 2021-12-17 02:50:40 +03:00
parent 2052b5bc3e
commit dac6516057
1 changed files with 2 additions and 1 deletions

View File

@ -73,7 +73,8 @@ static int _createUconvObj(const char *code, UconvObject *uobj)
{ {
UniChar uc_code[MAX_CP_NAME_LEN]; UniChar uc_code[MAX_CP_NAME_LEN];
int i; int i;
const char *ch = code; const unsigned char *ch =
(const unsigned char *)code;
if (code == NULL) if (code == NULL)
uc_code[0] = 0; uc_code[0] = 0;