summaryrefslogtreecommitdiffstats
path: root/usr.bin/catman/catman.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/catman/catman.c')
-rw-r--r--usr.bin/catman/catman.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/catman/catman.c b/usr.bin/catman/catman.c
index 3298c41..c43781e 100644
--- a/usr.bin/catman/catman.c
+++ b/usr.bin/catman/catman.c
@@ -710,7 +710,8 @@ determine_locale(void)
sep = strchr(locale, '_');
if (sep != NULL && isupper((unsigned char)sep[1])
&& isupper((unsigned char)sep[2])) {
- asprintf(&lang_locale, "%.*s%s", sep - locale, locale, &sep[3]);
+ asprintf(&lang_locale, "%.*s%s", (int)(sep - locale),
+ locale, &sep[3]);
}
sep = nl_langinfo(CODESET);
if (sep != NULL && *sep != '\0' && strcmp(sep, "US-ASCII") != 0) {
OpenPOWER on IntegriCloud