diff options
author | joerg <joerg@FreeBSD.org> | 1996-12-22 15:48:06 +0000 |
---|---|---|
committer | joerg <joerg@FreeBSD.org> | 1996-12-22 15:48:06 +0000 |
commit | 0f3bc141ec47377fd93cb5d34b89a3ad70ca39b6 (patch) | |
tree | 6999973529f88254cd71a65be7d41c538e355019 /lib/libc/locale/setrunelocale.c | |
parent | b9798f596149b878998c5b8079383b830212b8e2 (diff) | |
download | FreeBSD-src-0f3bc141ec47377fd93cb5d34b89a3ad70ca39b6.zip FreeBSD-src-0f3bc141ec47377fd93cb5d34b89a3ad70ca39b6.tar.gz |
Back out rev 1.5: the overflow condition is already handled elsewhere.
Diffstat (limited to 'lib/libc/locale/setrunelocale.c')
-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); |