From 1c5c40f638cf66cced5ed614a3e937a3d6be79f8 Mon Sep 17 00:00:00 2001 From: Ralf Corsepius Date: Tue, 23 Aug 2011 12:03:55 +0000 Subject: =?UTF-8?q?2011-08-23=20=20Ralf=20Cors=C3=A9pius=20=20?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * libc/stdlib/putenv_r.c: Use "strchr" instead of obsolete "index". * libc/stdlib/setenv_r.c: Use "memcpy" instead of obsolete "bcopy". --- newlib/libc/stdlib/setenv_r.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'newlib/libc/stdlib/setenv_r.c') 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; -- cgit v1.1