summaryrefslogtreecommitdiff
path: root/src/env.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1994-12-04 21:15:46 +0000
committerJim Meyering <jim@meyering.net>1994-12-04 21:15:46 +0000
commit12042b2fa27dc803319d3bcc8f7ebd954250cbd8 (patch)
tree545c99499087d8df5cc389c48c7293388dd53ea8 /src/env.c
parent06084cb7e8b51f8bd9e89c84723b7ce4e8af7541 (diff)
downloadcoreutils-12042b2fa27dc803319d3bcc8f7ebd954250cbd8.tar.xz
Use strr?chr instead of r?index.
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. */