From: ShadowNinja Date: Thu, 28 Nov 2013 16:09:51 +0000 (-0500) Subject: Don't use variable length arrays X-Git-Url: http://81.2.79.47:8989/gitweb/?a=commitdiff_plain;h=ff25218374bd1bfc65433543ceee336924a06925;p=zefram%2Fminetest%2Fminetest_engine.git Don't use variable length arrays --- diff --git a/src/rollback.cpp b/src/rollback.cpp index 4dc462af..bae81ddb 100644 --- a/src/rollback.cpp +++ b/src/rollback.cpp @@ -429,7 +429,7 @@ bool SQL_registerRow(ActionRow row) */ sqlite3_reset(dbs_do); - int bind [20 + (((bool) row.id) ? 1 : 0)], ii = 0; + int bind [22], ii = 0; bool nodeMeta = false; bind[ii++] = sqlite3_bind_int(dbs_do, 1, row.actor);