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/putenv_r.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'newlib/libc/stdlib/putenv_r.c') diff --git a/newlib/libc/stdlib/putenv_r.c b/newlib/libc/stdlib/putenv_r.c index 9ba626025..a0f476721 100644 --- a/newlib/libc/stdlib/putenv_r.c +++ b/newlib/libc/stdlib/putenv_r.c @@ -43,7 +43,7 @@ _DEFUN (_putenv_r, (reent_ptr, str), if (!p) return 1; - if (!(equal = index (p, '='))) + if (!(equal = strchr (p, '='))) { (void) _free_r (reent_ptr, p); return 1; -- cgit v1.2.3