diff options
| author | Andrey A. Chernov <ache@FreeBSD.org> | 1997-02-05 19:17:10 +0000 | 
|---|---|---|
| committer | Andrey A. Chernov <ache@FreeBSD.org> | 1997-02-05 19:17:10 +0000 | 
| commit | d81a091605c6ebb7328644f3399f97f0f145f2d6 (patch) | |
| tree | 5c0889ec26924f4d270f1ecc1e35b1373fc60755 /lib/libc/locale/setrunelocale.c | |
| parent | 487c0bf139a0952e4002e87a1279244c57e38b65 (diff) | |
Notes
Diffstat (limited to 'lib/libc/locale/setrunelocale.c')
| -rw-r--r-- | lib/libc/locale/setrunelocale.c | 4 | 
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libc/locale/setrunelocale.c b/lib/libc/locale/setrunelocale.c index 65daa836ffe6..42972065edca 100644 --- a/lib/libc/locale/setrunelocale.c +++ b/lib/libc/locale/setrunelocale.c @@ -84,8 +84,8 @@ _xpg4_setrunelocale(encoding)  	}  	if (!_PathLocale) -		return(EFAULT); -	/* Range checking already done at upper level caller */ +		_PathLocale = _PATH_LOCALE; +	/* Range checking not needed, encoding has fixed size */  	(void) strcpy(name, _PathLocale);  	(void) strcat(name, "/");  	(void) strcat(name, encoding);  | 
