common: cast arguments to character classification functions to unsigned char
[babeltrace.git] / src / plugins / text / pretty / print.c
index 92258030bc79f5dae24009eba88c3f6d3c8e3ac5..f81b892b1d19c0ffd4e79f0f5e091fc78d61bb93 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.023449 seconds and 4 git commands to generate.