summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Elkin <andrei.elkin@mariadb.com>2021-01-06 19:55:55 +0200
committerAndrei Elkin <andrei.elkin@mariadb.com>2021-01-07 00:12:07 +0200
commitf319c4265f0ae18e2703adaff951a6a6c87bcace (patch)
tree61f851263a4d640850bd70f92f21f3ddb160e2d5
parent51b7438d23c02d19efa9ecd050963d2d11db0538 (diff)
downloadmariadb-git-f319c4265f0ae18e2703adaff951a6a6c87bcace.tar.gz
MDEV-19442 add-on
fixing windows build.
-rw-r--r--plugin/server_audit/server_audit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugin/server_audit/server_audit.c b/plugin/server_audit/server_audit.c
index ebb2c6c0a05..47878e2e667 100644
--- a/plugin/server_audit/server_audit.c
+++ b/plugin/server_audit/server_audit.c
@@ -2161,7 +2161,7 @@ void auditing(MYSQL_THD thd, unsigned int event_class, const void *ev)
{
const struct mysql_event_table *event =
(const struct mysql_event_table *) ev;
- if (do_log_user(event->user, SAFE_STRLEN(event->user),
+ if (do_log_user(event->user, (int) SAFE_STRLEN(event->user),
cn->proxy, cn->proxy_length, 1))
{
switch (event->event_subclass)