diff options
Diffstat (limited to 'sysdeps/generic/setenv.c')
-rw-r--r-- | sysdeps/generic/setenv.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sysdeps/generic/setenv.c b/sysdeps/generic/setenv.c index 6d0c231..94dc747 100644 --- a/sysdeps/generic/setenv.c +++ b/sysdeps/generic/setenv.c @@ -132,9 +132,9 @@ setenv (name, value, replace) return -1; } *ep = new; + memcpy (*ep, name, namelen); + (*ep)[namelen] = '='; } - memcpy (*ep, name, namelen); - (*ep)[namelen] = '='; memcpy (&(*ep)[namelen + 1], value, vallen); } |