X-Git-Url: https://git.efficios.com/?a=blobdiff_plain;f=src%2Fcommon%2Fcommon.c;h=eed2451ea110400d151fde4ad0dddf558149bb56;hb=2c62a90ddcc5d63c6bf0f080e5676bc4eed36655;hp=1a7d57cc2bb420520508336968ef155d6631b6bf;hpb=6559432e3ac12aff7a0f729d3982ed6a779d2c3e;p=babeltrace.git diff --git a/src/common/common.c b/src/common/common.c index 1a7d57cc..eed2451e 100644 --- a/src/common/common.c +++ b/src/common/common.c @@ -783,7 +783,7 @@ bool bt_common_string_is_printable(const char *input) BT_ASSERT_DBG(input); for (ch = input; *ch != '\0'; ch++) { - if (!isprint(*ch) && *ch != '\n' && *ch != '\r' && + if (!isprint((unsigned char) *ch) && *ch != '\n' && *ch != '\r' && *ch != '\t' && *ch != '\v') { printable = false; goto end;