aboutsummaryrefslogtreecommitdiff
path: root/gdb/putenv.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/putenv.c')
-rw-r--r--gdb/putenv.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/putenv.c b/gdb/putenv.c
index d111e85..e2ea357 100644
--- a/gdb/putenv.c
+++ b/gdb/putenv.c
@@ -30,7 +30,7 @@ domain program.
extern char **environ;
-char *index();
+char *strchr();
char *malloc();
/****************************************************************/
@@ -74,7 +74,7 @@ putenv( entry )
/* Find the length of the "NAME=" */
- temp = index(entry,'=');
+ temp = strchr(entry,'=');
if ( temp == 0 )
return( -1 );