aboutsummaryrefslogtreecommitdiff
path: root/newlib/libc/stdlib/putenv_r.c
diff options
context:
space:
mode:
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 9ba6260..a0f4767 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;