1
0
mirror of https://github.com/blupi-games/planetblupi synced 2024-12-30 10:15:36 +01:00

Fix bad use of snprintf

This commit is contained in:
Mathieu Schroeter 2017-02-12 17:46:18 +01:00
parent f8ce7844cb
commit 7a7bf16ac9

View File

@ -2558,7 +2558,7 @@ bool CEvent::EventButtons (const SDL_Event &event, POINT pos)
const auto text = m_buttons[i].GetToolTips (pos);
if (text)
{
snprintf (m_textToolTips, sizeof (m_textToolTips), text);
snprintf (m_textToolTips, sizeof (m_textToolTips), "%s", text);
lg = GetTextWidth (m_textToolTips);
pos.x += 10;
pos.y += 20;