summaryrefslogtreecommitdiff
path: root/src/echo.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/echo.c
parent06084cb7e8b51f8bd9e89c84723b7ce4e8af7541 (diff)
downloadcoreutils-12042b2fa27dc803319d3bcc8f7ebd954250cbd8.tar.xz
Use strr?chr instead of r?index.
Diffstat (limited to 'src/echo.c')
-rw-r--r--src/echo.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/echo.c b/src/echo.c
index ee2402a39..205367915 100644
--- a/src/echo.c
+++ b/src/echo.c
@@ -134,7 +134,7 @@ main (argc, argv)
for (i = 0; temp[i]; i++)
{
- if (rindex (VALID_ECHO_OPTIONS, temp[i]) == 0)
+ if (strrchr (VALID_ECHO_OPTIONS, temp[i]) == 0)
goto just_echo;
}