1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00

Extract some of #3360 fixes to 10.5.x

That PR uncovered countless issues on `my_snprintf` uses.
This commit backports a squashed subset of their fixes.
This commit is contained in:
ParadoxV5
2024-11-14 17:42:43 -07:00
committed by Daniel Black
parent b414eca98d
commit cf2d49ddcf
24 changed files with 102 additions and 101 deletions

View File

@ -687,7 +687,7 @@ public:
{
return m_usec ?
my_snprintf(to, nbytes, "%s%llu.%06lu",
m_neg ? "-" : "", m_sec, (uint) m_usec) :
m_neg ? "-" : "", m_sec, m_usec) :
my_snprintf(to, nbytes, "%s%llu", m_neg ? "-" : "", m_sec);
}
void make_truncated_warning(THD *thd, const char *type_str) const;