diff options
Diffstat (limited to 'extra/mariabackup/backup_mysql.cc')
-rw-r--r-- | extra/mariabackup/backup_mysql.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/extra/mariabackup/backup_mysql.cc b/extra/mariabackup/backup_mysql.cc index e8881b9604e..847ba4e60e0 100644 --- a/extra/mariabackup/backup_mysql.cc +++ b/extra/mariabackup/backup_mysql.cc @@ -1386,7 +1386,7 @@ operator<<(std::ostream& s, const escape_and_quote& eq) s << '\''; size_t len = strlen(eq.str); char* escaped = (char *)alloca(2 * len + 1); - len = mysql_real_escape_string(eq.mysql, escaped, eq.str, len); + len = mysql_real_escape_string(eq.mysql, escaped, eq.str, (ulong)len); s << std::string(escaped, len); s << '\''; return s; |