diff options
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/catman/Makefile | 1 | ||||
-rw-r--r-- | usr.bin/catman/catman.c | 3 |
2 files changed, 3 insertions, 1 deletions
diff --git a/usr.bin/catman/Makefile b/usr.bin/catman/Makefile index ab4c014..d80a5fd 100644 --- a/usr.bin/catman/Makefile +++ b/usr.bin/catman/Makefile @@ -1,5 +1,6 @@ # $FreeBSD$ PROG= catman +WARNS?= 6 .include <bsd.prog.mk> 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) { |