From dac6516057f8e553a7e8eee3a25baceff048caa4 Mon Sep 17 00:00:00 2001 From: Ozkan Sezer Date: Fri, 17 Dec 2021 02:50:40 +0300 Subject: [PATCH] os2iconv.c (_createUconvObj): cast to unsigned char, to be safe. --- src/core/os2/geniconv/os2iconv.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/core/os2/geniconv/os2iconv.c b/src/core/os2/geniconv/os2iconv.c index 2aed47f05..c24cc54dc 100644 --- a/src/core/os2/geniconv/os2iconv.c +++ b/src/core/os2/geniconv/os2iconv.c @@ -73,7 +73,8 @@ static int _createUconvObj(const char *code, UconvObject *uobj) { UniChar uc_code[MAX_CP_NAME_LEN]; int i; - const char *ch = code; + const unsigned char *ch = + (const unsigned char *)code; if (code == NULL) uc_code[0] = 0;