diff --git a/src/telemetry.c b/src/telemetry.c index a1cac14..b973113 100644 --- a/src/telemetry.c +++ b/src/telemetry.c @@ -29,6 +29,7 @@ #include #include #include +#include #include "common.h" #include "configuration.h" @@ -806,8 +807,8 @@ int payload_is_ascii(char *payload, size_t len) int ret = 0; for (i = 0; i < len; i++) { - if (!g_ascii_isprint(payload[i]) && - !g_ascii_isspace(payload[i])) { + if (!isprint(payload[i]) && + !isspace(payload[i])) { ret = -EINVAL; break; }