summaryrefslogtreecommitdiff
path: root/libc/string/strcasestr.c
diff options
context:
space:
mode:
Diffstat (limited to 'libc/string/strcasestr.c')
-rw-r--r--libc/string/strcasestr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libc/string/strcasestr.c b/libc/string/strcasestr.c
index 320430ce6..5222eda71 100644
--- a/libc/string/strcasestr.c
+++ b/libc/string/strcasestr.c
@@ -19,7 +19,7 @@ char attribute_hidden *__strcasestr(const char *s1, const char *s2)
return (char *) s1;;
}
if ((*p == *s)
- || (tolower(*((unsigned char *)p)) == tolower(*((unsigned char *)s)))
+ || (__tolower(*((unsigned char *)p)) == __tolower(*((unsigned char *)s)))
) {
++p;
++s;
@@ -34,7 +34,7 @@ char attribute_hidden *__strcasestr(const char *s1, const char *s2)
#else
while (*p && *s) {
if ((*p == *s)
- || (tolower(*((unsigned char *)p)) == tolower(*((unsigned char *)s)))
+ || (__tolower(*((unsigned char *)p)) == __tolower(*((unsigned char *)s)))
) {
++p;
++s;