aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/generic/putenv.c
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/generic/putenv.c')
-rw-r--r--sysdeps/generic/putenv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sysdeps/generic/putenv.c b/sysdeps/generic/putenv.c
index 06a195d06b..d8258cf270 100644
--- a/sysdeps/generic/putenv.c
+++ b/sysdeps/generic/putenv.c
@@ -61,7 +61,7 @@ putenv (string)
char *name = alloca (name_end - string + 1);
memcpy (name, string, name_end - string);
name[name_end - string] = '\0';
- return setenv (name, string + 1, 1);
+ return setenv (name, name_end + 1, 1);
}
unsetenv (string);