From ff25218374bd1bfc65433543ceee336924a06925 Mon Sep 17 00:00:00 2001 From: ShadowNinja Date: Thu, 28 Nov 2013 11:09:51 -0500 Subject: [PATCH] Don't use variable length arrays --- src/rollback.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rollback.cpp b/src/rollback.cpp index 4dc462af6..bae81ddb0 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);