diff options
author | Torbjörn Andersson | 2017-08-06 16:42:40 +0200 |
---|---|---|
committer | Torbjörn Andersson | 2017-08-06 16:42:40 +0200 |
commit | a57c5b385decbd4c1bf15f2eace01bf7cb33f246 (patch) | |
tree | 0fa5606289a0118895dca13f96b6ce3d9813f9f3 /engines/sword25/util/lua | |
parent | 3d8d5541dc1ccdeae78b86f869f83b3d5b798e15 (diff) | |
download | scummvm-rg350-a57c5b385decbd4c1bf15f2eace01bf7cb33f246.tar.gz scummvm-rg350-a57c5b385decbd4c1bf15f2eace01bf7cb33f246.tar.bz2 scummvm-rg350-a57c5b385decbd4c1bf15f2eace01bf7cb33f246.zip |
SWORD25: Increase buffer length to silence GCC 7 warning
Diffstat (limited to 'engines/sword25/util/lua')
-rw-r--r-- | engines/sword25/util/lua/liolib.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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); } |