summaryrefslogtreecommitdiffstats
path: root/newlib/libc/stdlib/putenv_r.c
diff options
context:
space:
mode:
authorRalf Corsepius <ralf.corsepius@rtems.org>2011-08-23 12:03:55 +0000
committerRalf Corsepius <ralf.corsepius@rtems.org>2011-08-23 12:03:55 +0000
commit1c5c40f638cf66cced5ed614a3e937a3d6be79f8 (patch)
treee324ae1033a065a080fc1b0a15006d48a72e4ca2 /newlib/libc/stdlib/putenv_r.c
parentda344d0ea92b1e566f53b1bb31eb4ac8bd7b6c5f (diff)
downloadcygnal-1c5c40f638cf66cced5ed614a3e937a3d6be79f8.tar.gz
cygnal-1c5c40f638cf66cced5ed614a3e937a3d6be79f8.tar.bz2
cygnal-1c5c40f638cf66cced5ed614a3e937a3d6be79f8.zip
2011-08-23 Ralf Corsépius <ralf.corsepius@rtems.org>
* libc/stdlib/putenv_r.c: Use "strchr" instead of obsolete "index". * libc/stdlib/setenv_r.c: Use "memcpy" instead of obsolete "bcopy".
Diffstat (limited to 'newlib/libc/stdlib/putenv_r.c')
-rw-r--r--newlib/libc/stdlib/putenv_r.c2
1 files changed, 1 insertions, 1 deletions
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;