From 537ffa762833c990e4e4237f2dbae64c7e311662 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Thu, 15 May 2008 18:47:24 -0400 Subject: [PATCH] [cairo-xlib-surface.c] Fix memmove bug This was introduced in b7272e9e8e716b04752058855aeb74c42af0b395 --- src/cairo-xlib-surface.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cairo-xlib-surface.c b/src/cairo-xlib-surface.c index 58ac34c13..fef51f1b8 100644 --- a/src/cairo-xlib-surface.c +++ b/src/cairo-xlib-surface.c @@ -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; } }