diff options
author | Alexander Barkov <bar@mariadb.com> | 2019-04-22 15:05:11 +0400 |
---|---|---|
committer | Alexander Barkov <bar@mariadb.com> | 2019-04-22 15:05:11 +0400 |
commit | 6c5e4c9bc0d9ac30f7ec7ee334630bacb58687ba (patch) | |
tree | 684b2410e4d2e612f2f3640e345499a5d3e79b7d /sql/sp_head.cc | |
parent | 279b50b4eb69f882510f069e79715c38dc13355e (diff) | |
download | mariadb-git-6c5e4c9bc0d9ac30f7ec7ee334630bacb58687ba.tar.gz |
Fixing -Werror=format-overflow errors (found by gcc-8.3.1)
Diffstat (limited to 'sql/sp_head.cc')
-rw-r--r-- | sql/sp_head.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/sp_head.cc b/sql/sp_head.cc index f26115efd8b..852ba453090 100644 --- a/sql/sp_head.cc +++ b/sql/sp_head.cc @@ -2885,7 +2885,7 @@ sp_head::show_routine_code(THD *thd) const char *format= "Instruction at position %u has m_ip=%u"; char tmp[sizeof(format) + 2*SP_INSTR_UINT_MAXLEN + 1]; - sprintf(tmp, format, ip, i->m_ip); + my_snprintf(tmp, sizeof(tmp), format, ip, i->m_ip); /* Since this is for debugging purposes only, we don't bother to introduce a special error code for it. |