summaryrefslogtreecommitdiff
path: root/test/testutil
diff options
context:
space:
mode:
Diffstat (limited to 'test/testutil')
-rw-r--r--test/testutil/format_output.c4
-rw-r--r--test/testutil/stanza.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/test/testutil/format_output.c b/test/testutil/format_output.c
index 13123d5c6a..9b04a94f42 100644
--- a/test/testutil/format_output.c
+++ b/test/testutil/format_output.c
@@ -72,12 +72,12 @@ static void test_fail_string_common(const char *prefix, const char *file,
if (l1 > 0) {
b1[n1 = l1 > width ? width : l1] = 0;
for (i = 0; i < n1; i++)
- b1[i] = isprint(m1[i]) ? m1[i] : '.';
+ b1[i] = isprint((unsigned char)m1[i]) ? m1[i] : '.';
}
if (l2 > 0) {
b2[n2 = l2 > width ? width : l2] = 0;
for (i = 0; i < n2; i++)
- b2[i] = isprint(m2[i]) ? m2[i] : '.';
+ b2[i] = isprint((unsigned char)m2[i]) ? m2[i] : '.';
}
diff = 0;
i = 0;
diff --git a/test/testutil/stanza.c b/test/testutil/stanza.c
index 35967528f8..09fc181080 100644
--- a/test/testutil/stanza.c
+++ b/test/testutil/stanza.c
@@ -70,12 +70,12 @@ static char *strip_spaces(char *p)
char *q;
/* Skip over leading spaces */
- while (*p && isspace(*p))
+ while (*p && isspace((unsigned char)*p))
p++;
if (!*p)
return NULL;
- for (q = p + strlen(p) - 1; q != p && isspace(*q); )
+ for (q = p + strlen(p) - 1; q != p && isspace((unsigned char)*q); )
*q-- = '\0';
return *p ? p : NULL;
}