common: cast arguments to character classification functions to unsigned char
[babeltrace.git] / src / plugins / text / pretty / print.c
index e908d75db9f074f635192136281857cbf950c5bf..79dab4132ce8b26207d1628c07886ad586a5f421 100644 (file)
@@ -639,7 +639,7 @@ void print_escape_string(struct pretty_component *pretty, const char *str)
                }
 
                /* Standard characters. */
-               if (!iscntrl(str[i])) {
+               if (!iscntrl((unsigned char) str[i])) {
                        bt_common_g_string_append_c(pretty->string, str[i]);
                        continue;
                }
This page took 0.023222 seconds and 4 git commands to generate.