mirror of
https://github.com/blupi-games/planetblupi
synced 2024-12-30 10:15:36 +01:00
Fix warnings for format in printf
This commit is contained in:
parent
610aa7f91b
commit
45102da4dd
@ -275,7 +275,7 @@ void CMenu::Draw()
|
||||
|
||||
if (m_errors[i] >= 100) // no ressource au lieu erreur ?
|
||||
{
|
||||
snprintf (text, sizeof (text), m_texts[i]);
|
||||
snprintf (text, sizeof (text), "%s", m_texts[i]);
|
||||
pText = strchr (text, '\n');
|
||||
if (pText != nullptr)
|
||||
*pText = 0;
|
||||
@ -283,7 +283,7 @@ void CMenu::Draw()
|
||||
else
|
||||
{
|
||||
const auto tr = GetText (m_buttons[i]);
|
||||
snprintf (text, sizeof (text), tr);
|
||||
snprintf (text, sizeof (text), "%s", tr);
|
||||
}
|
||||
|
||||
if (m_nbCel.x > 1 && i < m_nbCel.y)
|
||||
@ -315,7 +315,7 @@ void CMenu::Draw()
|
||||
{
|
||||
if (m_errors[i] >= 100) // no ressource au lieu erreur ?
|
||||
{
|
||||
snprintf (text, sizeof (text), m_texts[i]);
|
||||
snprintf (text, sizeof (text), "%s", m_texts[i]);
|
||||
pText = strchr (text, '\n');
|
||||
if (pText != nullptr)
|
||||
strcpy (text, pText + 1);
|
||||
@ -323,7 +323,7 @@ void CMenu::Draw()
|
||||
else
|
||||
{
|
||||
const auto tr = GetErr (m_errors[i] - 1); // impossible ici
|
||||
snprintf (text, sizeof (text), tr);
|
||||
snprintf (text, sizeof (text), "%s", tr);
|
||||
}
|
||||
|
||||
if (m_nbCel.x > 1 && i < m_nbCel.y)
|
||||
|
Loading…
x
Reference in New Issue
Block a user