diff options
author | Marko Mäkelä <marko.makela@mariadb.com> | 2021-03-26 11:50:32 +0200 |
---|---|---|
committer | Marko Mäkelä <marko.makela@mariadb.com> | 2021-03-26 11:50:32 +0200 |
commit | 356c149603285086d964c8a51107be97b981c15c (patch) | |
tree | 932c4199fcd51bcda3052d6fbbfba7877a385330 /sql/sql_prepare.cc | |
parent | e9e1890162c2f75e399229f08dd9924d55d9655b (diff) | |
parent | 2e67b9f665875928605880661fc5aa1a15175f53 (diff) | |
download | mariadb-git-356c149603285086d964c8a51107be97b981c15c.tar.gz |
Merge 10.5 into 10.6
Diffstat (limited to 'sql/sql_prepare.cc')
-rw-r--r-- | sql/sql_prepare.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/sql_prepare.cc b/sql/sql_prepare.cc index 5d0378886db..bba182c1b9c 100644 --- a/sql/sql_prepare.cc +++ b/sql/sql_prepare.cc @@ -3423,7 +3423,7 @@ static void mysql_stmt_execute_common(THD *thd, Set thd->query_string with the stmt_id so the audit plugin gets the meaningful notification. */ - if (alloc_query(thd, llbuf, strlen(llbuf))) + if (alloc_query(thd, llbuf, sizeof(llbuf))) thd->set_query(0, 0); my_error(ER_UNKNOWN_STMT_HANDLER, MYF(0), static_cast<int>(sizeof(llbuf)), llstr(stmt_id, llbuf), "mysqld_stmt_execute"); |