summaryrefslogtreecommitdiff
path: root/sql
diff options
context:
space:
mode:
authorAlexander Barkov <bar@mariadb.com>2019-04-22 15:05:11 +0400
committerAlexander Barkov <bar@mariadb.com>2019-04-22 15:05:11 +0400
commit6c5e4c9bc0d9ac30f7ec7ee334630bacb58687ba (patch)
tree684b2410e4d2e612f2f3640e345499a5d3e79b7d /sql
parent279b50b4eb69f882510f069e79715c38dc13355e (diff)
downloadmariadb-git-6c5e4c9bc0d9ac30f7ec7ee334630bacb58687ba.tar.gz
Fixing -Werror=format-overflow errors (found by gcc-8.3.1)
Diffstat (limited to 'sql')
-rw-r--r--sql/sp_head.cc2
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.