From ec9708694e886746af0d45d30bbf271c2061053f Mon Sep 17 00:00:00 2001 From: Arnaud Boutonné Date: Fri, 27 Aug 2010 09:48:53 +0000 Subject: HUGO: Hopefully fix GCC_PRINTF issue in util * Add a mask in each call of Warn(), Error() and Box() not using one * cleanup: use the same wording for 'End of namespace Hugo' in all files svn-id: r52406 --- engines/hugo/display.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'engines/hugo/display.cpp') diff --git a/engines/hugo/display.cpp b/engines/hugo/display.cpp index d80119b90d..67359b59bf 100644 --- a/engines/hugo/display.cpp +++ b/engines/hugo/display.cpp @@ -278,7 +278,7 @@ void Screen::displayList(dupdate_t update, ...) { break; case D_ADD: // Add a rectangle to list if (addIndex >= DMAX) { - Utils::Warn(false, "Display list exceeded"); + Utils::Warn(false, "%s", "Display list exceeded"); return; } va_start(marker, update); // Initialize variable arguments @@ -440,7 +440,8 @@ void Screen::loadFont(int16 fontId) { void Screen::userHelp() { // Introduce user to the game // DOS versions Only - Utils::Box(BOX_ANY , "F1 - Press F1 again\n" + Utils::Box(BOX_ANY , "%s", + "F1 - Press F1 again\n" " for instructions\n" "F2 - Sound on/off\n" "F3 - Recall last line\n" @@ -452,4 +453,4 @@ void Screen::userHelp() { "ESC - Return to game"); } -} // end of namespace Hugo +} // End of namespace Hugo -- cgit v1.2.3