summaryrefslogtreecommitdiff
path: root/src/env.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/env.c')
-rw-r--r--src/env.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/env.c b/src/env.c
index 19c2a62c1..53be05639 100644
--- a/src/env.c
+++ b/src/env.c
@@ -166,7 +166,7 @@ main (argc, argv, envp)
if (optind != argc && !strcmp (argv[optind], "-"))
++optind;
- while (optind < argc && index (argv[optind], '='))
+ while (optind < argc && strchr (argv[optind], '='))
putenv (argv[optind++]);
/* If no program is specified, print the environment and exit. */