summaryrefslogtreecommitdiffstats
path: root/lib/libc/locale/setrunelocale.c
diff options
context:
space:
mode:
authorache <ache@FreeBSD.org>1996-12-28 05:04:24 +0000
committerache <ache@FreeBSD.org>1996-12-28 05:04:24 +0000
commit1eac53090bfecc7062cd8bc91cd5c5945a24de01 (patch)
tree841f9ce04833b2ecb342e677a801eaa3a9790dc3 /lib/libc/locale/setrunelocale.c
parenta7a2d1e16cb18addc021ccd8c9c0a100caf4f49b (diff)
downloadFreeBSD-src-1eac53090bfecc7062cd8bc91cd5c5945a24de01.zip
FreeBSD-src-1eac53090bfecc7062cd8bc91cd5c5945a24de01.tar.gz
Add comment that range checking is already done at upper level
Kill snprintf left in collate.c from previous backout Should go in 2.2
Diffstat (limited to 'lib/libc/locale/setrunelocale.c')
-rw-r--r--lib/libc/locale/setrunelocale.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/libc/locale/setrunelocale.c b/lib/libc/locale/setrunelocale.c
index 228efe29..65daa83 100644
--- a/lib/libc/locale/setrunelocale.c
+++ b/lib/libc/locale/setrunelocale.c
@@ -85,6 +85,7 @@ _xpg4_setrunelocale(encoding)
if (!_PathLocale)
return(EFAULT);
+ /* Range checking already done at upper level caller */
(void) strcpy(name, _PathLocale);
(void) strcat(name, "/");
(void) strcat(name, encoding);
OpenPOWER on IntegriCloud