Don't use variable length arrays

stable-0.4
ShadowNinja 2013-11-28 11:09:51 -05:00
parent 7433d65d3e
commit ff25218374
1 changed files with 1 additions and 1 deletions

View 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);