summaryrefslogtreecommitdiff
path: root/usr.bin/less/lsystem.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/less/lsystem.c')
-rw-r--r--usr.bin/less/lsystem.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/less/lsystem.c b/usr.bin/less/lsystem.c
index 8fa4683215e..44ec82c58e7 100644
--- a/usr.bin/less/lsystem.c
+++ b/usr.bin/less/lsystem.c
@@ -431,7 +431,7 @@ FILE *popen(name, mode)
while (*cp == ' ')
cp++;
strlcpy(cmd_path, cp, sizeof(cmd_path));
- if (cp = index(cmd_path, ' '))
+ if (cp = strchr(cmd_path, ' '))
*cp++ = '\0';
strlcpy(cmd, "ex ", sizeof(cmd));
strlcat(cmd, cmd_path, sizeof(cmd));