diff options
author | Andriy Gapon <avg@FreeBSD.org> | 2013-07-16 07:26:46 +0000 |
---|---|---|
committer | Andriy Gapon <avg@FreeBSD.org> | 2013-07-16 07:26:46 +0000 |
commit | e488ee55bc4bbdd77872b4b4ce7fe69eccc4795a (patch) | |
tree | cff6b47ab4fa155b1720a708c0c25e19155877b3 /lib | |
parent | 6b0621119640e3e9097381625c41a460cc5826e0 (diff) | |
download | src-test2-e488ee55bc4bbdd77872b4b4ce7fe69eccc4795a.tar.gz src-test2-e488ee55bc4bbdd77872b4b4ce7fe69eccc4795a.zip |
Notes
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libc/stdlib/getenv.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libc/stdlib/getenv.c b/lib/libc/stdlib/getenv.c index 47963d53dd62..079b024dcfab 100644 --- a/lib/libc/stdlib/getenv.c +++ b/lib/libc/stdlib/getenv.c @@ -505,7 +505,7 @@ __setenv(const char *name, size_t nameLen, const char *value, int overwrite) envVars[envNdx].valueSize = valueLen; /* Save name of name/value pair. */ - env = stpcpy(envVars[envNdx].name, name); + env = stpncpy(envVars[envNdx].name, name, nameLen); if ((envVars[envNdx].name)[nameLen] != '=') env = stpcpy(env, "="); } |