summaryrefslogtreecommitdiffstats
path: root/format.c
diff options
context:
space:
mode:
authorThomas Adam <thomas@xteddy.org>2023-06-30 16:01:10 +0100
committerThomas Adam <thomas@xteddy.org>2023-06-30 16:01:10 +0100
commit237ee6f2311b351b8a3bb3b46e17622f6e3b6bb9 (patch)
treeb9c4298a78b4a85dfcb517a6648570a331ae5d17 /format.c
parent8c9fbbf4f3baae95c0ec437108f39483ced815cb (diff)
parent4e57894e8506f27844fc0e6353475a0b61fd7807 (diff)
Merge branch 'obsd-master'
Diffstat (limited to 'format.c')
-rw-r--r--format.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/format.c b/format.c
index f69330b2..13348803 100644
--- a/format.c
+++ b/format.c
@@ -3813,7 +3813,7 @@ format_build_modifiers(struct format_expand_state *es, const char **s,
argc = 0;
/* Single argument with no wrapper character. */
- if (!ispunct(cp[1]) || cp[1] == '-') {
+ if (!ispunct((u_char)cp[1]) || cp[1] == '-') {
end = format_skip(cp + 1, ":;");
if (end == NULL)
break;