diff options
| author | Joerg Wunsch <joerg@FreeBSD.org> | 1996-12-22 15:48:06 +0000 | 
|---|---|---|
| committer | Joerg Wunsch <joerg@FreeBSD.org> | 1996-12-22 15:48:06 +0000 | 
| commit | 42ceaa809ff5e4b519d104173c23d0eb3548f7da (patch) | |
| tree | 6999973529f88254cd71a65be7d41c538e355019 /lib/libc | |
| parent | 354ae80dd46319ba9498c8aa33cdb906fc023e32 (diff) | |
Notes
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 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);  | 
