summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2004-12-19 13:27:51 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2004-12-19 13:27:51 +0000
commit5677a1b879782960b3acfbec15a51e9c6d2688ce (patch)
tree9306f22bb36138dfb030620512b8ff74fdb27903 /usr.bin
parentc307e658d61eab7b5469e5acdfa26cf37dc43be5 (diff)
use strchr instead of index
Diffstat (limited to 'usr.bin')
-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));