diff options
author | ache <ache@FreeBSD.org> | 1997-02-03 08:29:32 +0000 |
---|---|---|
committer | ache <ache@FreeBSD.org> | 1997-02-03 08:29:32 +0000 |
commit | c71c1ef7da4f68ccb35d9a712379cf1b05fc44d1 (patch) | |
tree | c15c8adaaa3f96c916e44db0c28e99cd89a18877 /lib | |
parent | 6ed4640da220565231750fd5df08212633593f98 (diff) | |
download | FreeBSD-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.c | 1 |
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); |