aboutsummaryrefslogtreecommitdiff
path: root/lib/libc/locale
diff options
context:
space:
mode:
authorJoerg Wunsch <joerg@FreeBSD.org>1996-12-22 15:48:06 +0000
committerJoerg Wunsch <joerg@FreeBSD.org>1996-12-22 15:48:06 +0000
commit42ceaa809ff5e4b519d104173c23d0eb3548f7da (patch)
tree6999973529f88254cd71a65be7d41c538e355019 /lib/libc/locale
parent354ae80dd46319ba9498c8aa33cdb906fc023e32 (diff)
downloadsrc-42ceaa809ff5e4b519d104173c23d0eb3548f7da.tar.gz
src-42ceaa809ff5e4b519d104173c23d0eb3548f7da.zip
Back out rev 1.5: the overflow condition is already handled elsewhere.
Notes
Notes: svn path=/head/; revision=20810
Diffstat (limited to 'lib/libc/locale')
-rw-r--r--lib/libc/locale/setrunelocale.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/libc/locale/setrunelocale.c b/lib/libc/locale/setrunelocale.c
index cf68a437a97f..228efe2908a7 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);