mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-03 11:35:19 +00:00
use g_ascii_iscntrl instead of c_iscntrl from gnulib
Signed-off-by: Pavel Hrdina <phrdina@redhat.com> Reviewed-by: Cole Robinson <crobinso@redhat.com>
This commit is contained in:
parent
b10dd7d443
commit
bbe0610625
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user