From 54defd6da6b4af79a5932322c4cbce29819b223c Mon Sep 17 00:00:00 2001 From: Christos Zoulas Date: Tue, 27 Sep 2022 19:01:05 +0000 Subject: PR/383: delphij: %lc expects wint_t --- src/file.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/file.c b/src/file.c index cb9845a7..2b185809 100644 --- a/src/file.c +++ b/src/file.c @@ -32,7 +32,7 @@ #include "file.h" #ifndef lint -FILE_RCSID("@(#)$File: file.c,v 1.207 2022/09/24 20:30:13 christos Exp $") +FILE_RCSID("@(#)$File: file.c,v 1.208 2022/09/27 19:01:05 christos Exp $") #endif /* lint */ #include "magic.h" @@ -593,7 +593,7 @@ fname_print(const char *inname) inname += bytesconsumed; n -= bytesconsumed; if (iswprint(nextchar)) { - printf("%lc", nextchar); + printf("%lc", (wint_t)nextchar); continue; } /* XXX: What if it is > 255? */ -- cgit v1.2.1