Don't use variable length arrays
authorShadowNinja <shadowninja@minetest.net>
Thu, 28 Nov 2013 16:09:51 +0000 (11:09 -0500)
committerShadowNinja <shadowninja@minetest.net>
Thu, 28 Nov 2013 16:22:41 +0000 (11:22 -0500)
src/rollback.cpp

index 4dc462af618f7b0ac455454c935a5188a4f22527..bae81ddb0a673bae80b759c30adf9ddaaadf0ac0 100644 (file)
@@ -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);