diff --git a/lib/libc/locale/setrunelocale.c b/lib/libc/locale/setrunelocale.c index cf68a437a97..228efe2908a 100644 --- a/lib/libc/locale/setrunelocale.c +++ b/lib/libc/locale/setrunelocale.c @@ -85,8 +85,10 @@ _xpg4_setrunelocale(encoding) if (!_PathLocale) return(EFAULT); - (void) snprintf(name, sizeof name, "%s/%s/LC_CTYPE", - _PathLocale, encoding); + (void) strcpy(name, _PathLocale); + (void) strcat(name, "/"); + (void) strcat(name, encoding); + (void) strcat(name, "/LC_CTYPE"); if ((fp = fopen(name, "r")) == NULL) return(ENOENT);