[cairo-xlib-surface.c] Fix memmove bug

This was introduced in b7272e9e8e
This commit is contained in:
Behdad Esfahbod 2008-05-15 18:47:24 -04:00
parent 4dd4d96fb1
commit 537ffa7628

View file

@ -2975,7 +2975,7 @@ _cairo_xlib_surface_add_glyph (Display *dpy,
to_free->glyph_count--;
memmove (&to_free->glyph_indices[i],
&to_free->glyph_indices[i+1],
(to_free->glyph_count - i) * sizeof (to_free->glyph_indices));
(to_free->glyph_count - i) * sizeof (to_free->glyph_indices[0]));
goto DONE;
}
}