summaryrefslogtreecommitdiff
path: root/strings/my_strchr.c
diff options
context:
space:
mode:
Diffstat (limited to 'strings/my_strchr.c')
-rw-r--r--strings/my_strchr.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/strings/my_strchr.c b/strings/my_strchr.c
index 6b1564c7ee1..323cbd0a37f 100644
--- a/strings/my_strchr.c
+++ b/strings/my_strchr.c
@@ -1,5 +1,5 @@
/* Copyright (c) 2005, 2011, Oracle and/or its affiliates.
- Copyright (c) 2009-2011, Monty Program Ab
+ Copyright (c) 2009, 2020, MariaDB Corporation.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -38,7 +38,8 @@
const char *acc_end= (ACC) + (LEN); \
for (ptr_str= (STR) ; ptr_str < (END) ; ptr_str+= mbl) \
{ \
- mbl= my_charlen_fix((CS), ptr_str, (END)); \
+ mbl= my_ci_charlen_fix((CS), (const uchar *) ptr_str, \
+ (const uchar *) (END)); \
if (mbl < 2) \
{ \
DBUG_ASSERT(mbl == 1); \