summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--regress/usr.bin/mandoc/db/dbm_dump/dbm_dump.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/regress/usr.bin/mandoc/db/dbm_dump/dbm_dump.c b/regress/usr.bin/mandoc/db/dbm_dump/dbm_dump.c
index 22761e2c298..f4e967e0237 100644
--- a/regress/usr.bin/mandoc/db/dbm_dump/dbm_dump.c
+++ b/regress/usr.bin/mandoc/db/dbm_dump/dbm_dump.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: dbm_dump.c,v 1.2 2016/08/30 22:20:03 schwarze Exp $ */
+/* $OpenBSD: dbm_dump.c,v 1.3 2024/05/14 00:31:48 schwarze Exp $ */
/*
* Copyright (c) 2016 Ingo Schwarze <schwarze@openbsd.org>
*
@@ -196,7 +196,7 @@ dump_str(const char **cp)
printf("(NULL)");
return;
}
- if (**cp <= (char)NAME_MASK) {
+ if ((unsigned char)**cp <= NAME_MASK) {
putchar('[');
if (**cp & NAME_FILE)
putchar('f');