Commit dac6516057f8e553a7e8eee3a25baceff048caa4

Ozkan Sezer 2021-12-17T02:50:40

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

1
2
3
4
5
6
7
8
9
10
11
12
13
14
diff --git a/src/core/os2/geniconv/os2iconv.c b/src/core/os2/geniconv/os2iconv.c
index 2aed47f..c24cc54 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;