summaryrefslogtreecommitdiff
path: root/src/echo.c
diff options
context:
space:
mode:
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;
}