aboutsummaryrefslogtreecommitdiff
path: root/engines/glk/hugo
diff options
context:
space:
mode:
authorPaul Gilbert2019-07-24 20:32:14 -0700
committerPaul Gilbert2019-07-24 20:32:14 -0700
commit58498cf5f21375c3ab89a8486175ff8de087bdf7 (patch)
tree62f72f4033f6369ae492131d3c5b52e2e6620d90 /engines/glk/hugo
parenta1414f9ad6739cd411ca79ad77359ae4858d1379 (diff)
downloadscummvm-rg350-58498cf5f21375c3ab89a8486175ff8de087bdf7.tar.gz
scummvm-rg350-58498cf5f21375c3ab89a8486175ff8de087bdf7.tar.bz2
scummvm-rg350-58498cf5f21375c3ab89a8486175ff8de087bdf7.zip
GLK: Fixing some gcc 8 warnings
Diffstat (limited to 'engines/glk/hugo')
-rw-r--r--engines/glk/hugo/hemisc.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/engines/glk/hugo/hemisc.cpp b/engines/glk/hugo/hemisc.cpp
index 880305076d..50ff4f7891 100644
--- a/engines/glk/hugo/hemisc.cpp
+++ b/engines/glk/hugo/hemisc.cpp
@@ -635,8 +635,6 @@ unsigned int Hugo::Dict() {
}
void Hugo::FatalError(int n) {
- char fatalerrorline[64];
-
#if defined (DEBUGGER)
hugo_stopmusic();
hugo_stopsample();
@@ -732,8 +730,8 @@ if (n==UNKNOWN_OP_E || n==ILLEGAL_OP_E || n==EXPECT_VAL_E || n==OVERFLOW_E)
fprintf(stderr, "\n");
}
*/
- sprintf(fatalerrorline, "\nFatal Error: %s", line);
- PRINTFATALERROR(fatalerrorline);
+ Common::String msg = Common::String::format("\nFatal Error: %s", line);
+ PRINTFATALERROR(msg.c_str());
hugo_closefiles();
hugo_blockfree(mem);