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:
parent
f8ce7844cb
commit
7a7bf16ac9
@ -2558,7 +2558,7 @@ bool CEvent::EventButtons (const SDL_Event &event, POINT pos)
|
|||||||
const auto text = m_buttons[i].GetToolTips (pos);
|
const auto text = m_buttons[i].GetToolTips (pos);
|
||||||
if (text)
|
if (text)
|
||||||
{
|
{
|
||||||
snprintf (m_textToolTips, sizeof (m_textToolTips), text);
|
snprintf (m_textToolTips, sizeof (m_textToolTips), "%s", text);
|
||||||
lg = GetTextWidth (m_textToolTips);
|
lg = GetTextWidth (m_textToolTips);
|
||||||
pos.x += 10;
|
pos.x += 10;
|
||||||
pos.y += 20;
|
pos.y += 20;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user