From 5677a1b879782960b3acfbec15a51e9c6d2688ce Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Sun, 19 Dec 2004 13:27:51 +0000 Subject: use strchr instead of index --- usr.bin/less/lsystem.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'usr.bin') 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)); -- cgit v1.2.3