diff --git a/cogl/cogl-vertex-buffer.c b/cogl/cogl-vertex-buffer.c index 514cb7a27..300acf088 100644 --- a/cogl/cogl-vertex-buffer.c +++ b/cogl/cogl-vertex-buffer.c @@ -1164,7 +1164,7 @@ update_primitive_attributes (CoglVertexBuffer *buffer) g_return_if_fail (n_attributes > 0); - attributes = g_alloca (sizeof (CoglAttribute *) * n_attributes + 1); + attributes = g_alloca (sizeof (CoglAttribute *) * (n_attributes + 1)); i = 0; for (l = buffer->submitted_vbos; l; l = l->next)