From bbe0610625652341f094a34c5897d94b9d7e39a2 Mon Sep 17 00:00:00 2001 From: Pavel Hrdina Date: Mon, 18 Nov 2019 15:17:15 +0100 Subject: [PATCH] use g_ascii_iscntrl instead of c_iscntrl from gnulib Signed-off-by: Pavel Hrdina Reviewed-by: Cole Robinson --- tools/vsh-table.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/vsh-table.c b/tools/vsh-table.c index 9008b0d431..28072c9719 100644 --- a/tools/vsh-table.c +++ b/tools/vsh-table.c @@ -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; -- GitLab