summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorache <ache@FreeBSD.org>1997-02-03 08:29:32 +0000
committerache <ache@FreeBSD.org>1997-02-03 08:29:32 +0000
commitc71c1ef7da4f68ccb35d9a712379cf1b05fc44d1 (patch)
treec15c8adaaa3f96c916e44db0c28e99cd89a18877 /lib
parent6ed4640da220565231750fd5df08212633593f98 (diff)
downloadFreeBSD-src-c71c1ef7da4f68ccb35d9a712379cf1b05fc44d1.zip
FreeBSD-src-c71c1ef7da4f68ccb35d9a712379cf1b05fc44d1.tar.gz
Add yet one comment saying that range checking already done
to stop people "fixing" it by snprintf
Diffstat (limited to 'lib')
-rw-r--r--lib/libc/locale/setlocale.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/libc/locale/setlocale.c b/lib/libc/locale/setlocale.c
index 1ce0343..9c0e341 100644
--- a/lib/libc/locale/setlocale.c
+++ b/lib/libc/locale/setlocale.c
@@ -311,6 +311,7 @@ const char *encoding;
return(0);
if (!_PathLocale)
return(1);
+ /* Range checking already done at upper level caller */
strcpy(name, _PathLocale);
strcat(name, "/");
strcat(name, encoding);
OpenPOWER on IntegriCloud