summaryrefslogtreecommitdiff
path: root/gtk/gtkcssarrayvalue.c
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2012-09-16 18:44:59 +0200
committerBenjamin Otte <otte@redhat.com>2012-09-17 20:39:13 +0200
commitf77f6f3322dcdfc129fb1aec26ae10b91912e983 (patch)
tree9095a5a302f4a9efe3cf70bbed39a4430f94f019 /gtk/gtkcssarrayvalue.c
parentebf9e9db4243b4c1b18a0bc414d24543fd9da558 (diff)
downloadgtk+-f77f6f3322dcdfc129fb1aec26ae10b91912e983.tar.gz
cssvalue: Fix out-of-bounds in array transition code
Diffstat (limited to 'gtk/gtkcssarrayvalue.c')
-rw-r--r--gtk/gtkcssarrayvalue.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk/gtkcssarrayvalue.c b/gtk/gtkcssarrayvalue.c
index de69c42900..dadedba90d 100644
--- a/gtk/gtkcssarrayvalue.c
+++ b/gtk/gtkcssarrayvalue.c
@@ -126,8 +126,8 @@ gtk_css_value_array_transition_repeat (GtkCssValue *start,
for (i = 0; i < n; i++)
{
- transitions[i] = _gtk_css_value_transition (start->values[i],
- end->values[i],
+ transitions[i] = _gtk_css_value_transition (start->values[i % start->n_values],
+ end->values[i % end->n_values],
property_id,
progress);
if (transitions[i] == NULL)