--- src/usr.bin/catman/catman.c 2008/11/01 02:49:15 1.3 +++ src/usr.bin/catman/catman.c 2008/11/10 16:10:34 1.4 @@ -711,7 +711,8 @@ determine_locale(void) } sep = strchr(locale, '_'); if (sep != NULL && isupper(sep[1]) && isupper(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) { int i;