summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristos Zoulas <christos@zoulas.com>2022-09-27 19:01:05 +0000
committerChristos Zoulas <christos@zoulas.com>2022-09-27 19:01:05 +0000
commit54defd6da6b4af79a5932322c4cbce29819b223c (patch)
tree9a3ae8687b9158b1f5863432bc5da640a6ca9615 /src
parent418cf92f63c65a32d43852d27d5c6d7a630a8ea8 (diff)
downloadfile-git-54defd6da6b4af79a5932322c4cbce29819b223c.tar.gz
PR/383: delphij: %lc expects wint_t
Diffstat (limited to 'src')
-rw-r--r--src/file.c4
1 files changed, 2 insertions, 2 deletions
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? */