aboutsummaryrefslogtreecommitdiff
path: root/string/envz.c
diff options
context:
space:
mode:
Diffstat (limited to 'string/envz.c')
-rw-r--r--string/envz.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/string/envz.c b/string/envz.c
index e1532ca..5c5804c 100644
--- a/string/envz.c
+++ b/string/envz.c
@@ -163,7 +163,7 @@ envz_strip (char **envz, size_t *envz_len)
{
size_t entry_len = strlen (entry) + 1;
left -= entry_len;
- if (! index (entry, SEP))
+ if (! strchr (entry, SEP))
/* Null entry. */
memmove (entry + entry_len, entry, left);
else