summaryrefslogtreecommitdiff
path: root/libc/string/generic/strrchr.c
diff options
context:
space:
mode:
Diffstat (limited to 'libc/string/generic/strrchr.c')
-rw-r--r--libc/string/generic/strrchr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libc/string/generic/strrchr.c b/libc/string/generic/strrchr.c
index bde4d4da0..325be7d48 100644
--- a/libc/string/generic/strrchr.c
+++ b/libc/string/generic/strrchr.c
@@ -30,10 +30,10 @@ char attribute_hidden *__strrchr (const char *s, int c)
/* Since strchr is fast, we use it rather than the obvious loop. */
if (c == '\0')
- return strchr (s, '\0');
+ return __strchr (s, '\0');
found = NULL;
- while ((p = strchr (s, c)) != NULL)
+ while ((p = __strchr (s, c)) != NULL)
{
found = p;
s = p + 1;