]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
use g_ascii_iscntrl instead of c_iscntrl from gnulib
authorPavel Hrdina <phrdina@redhat.com>
Mon, 18 Nov 2019 14:17:15 +0000 (15:17 +0100)
committerPavel Hrdina <phrdina@redhat.com>
Tue, 10 Dec 2019 12:49:24 +0000 (13:49 +0100)
Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
Reviewed-by: Cole Robinson <crobinso@redhat.com>
tools/vsh-table.c

index 9008b0d431e5bcdfaaf2ebd6519f7d694f7e9a75..28072c971948015af575cc856ba1df66f691c7c2 100644 (file)
@@ -226,7 +226,7 @@ vshTableSafeEncode(const char *s, size_t *width)
 
     while (p && *p) {
         if ((*p == '\\' && *(p + 1) == 'x') ||
-            c_iscntrl(*p)) {
+            g_ascii_iscntrl(*p)) {
             g_snprintf(buf, HEX_ENCODE_LENGTH + 1, "\\x%02x", *p);
             buf += HEX_ENCODE_LENGTH;
             *width += HEX_ENCODE_LENGTH;