diff options
Diffstat (limited to 'newlib/libc/stdlib/setenv_r.c')
-rw-r--r-- | newlib/libc/stdlib/setenv_r.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/newlib/libc/stdlib/setenv_r.c b/newlib/libc/stdlib/setenv_r.c index d73ba39..f9ff2c1 100644 --- a/newlib/libc/stdlib/setenv_r.c +++ b/newlib/libc/stdlib/setenv_r.c @@ -110,7 +110,7 @@ _DEFUN (_setenv_r, (reent_ptr, name, value, rewrite), ENV_UNLOCK; return (-1); } - bcopy ((char *) *p_environ, (char *) P, cnt * sizeof (char *)); + memcpy((char *) P,(char *) *p_environ, cnt * sizeof (char *)); *p_environ = P; } (*p_environ)[cnt + 1] = NULL; |