From a57c5b385decbd4c1bf15f2eace01bf7cb33f246 Mon Sep 17 00:00:00 2001 From: Torbjörn Andersson Date: Sun, 6 Aug 2017 16:42:40 +0200 Subject: SWORD25: Increase buffer length to silence GCC 7 warning --- engines/sword25/util/lua/liolib.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'engines') diff --git a/engines/sword25/util/lua/liolib.cpp b/engines/sword25/util/lua/liolib.cpp index 403dea2ec2..20d716498f 100644 --- a/engines/sword25/util/lua/liolib.cpp +++ b/engines/sword25/util/lua/liolib.cpp @@ -440,7 +440,7 @@ static int g_write (lua_State *L, Sword25::Sword25FileProxy *f, int arg) { if (lua_type(L, arg) == LUA_TNUMBER) { // optimization: could be done exactly as for strings if (status) { - char buffer[20]; + char buffer[22]; sprintf(buffer, LUA_NUMBER_FMT, lua_tonumber(L, arg)); status = f->write(buffer, strlen(buffer)) == strlen(buffer); } -- cgit v1.2.3