diff options
Diffstat (limited to 'lib/libc')
-rw-r--r-- | lib/libc/locale/setrunelocale.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/libc/locale/setrunelocale.c b/lib/libc/locale/setrunelocale.c index cf68a43..228efe29 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); |