mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-08 21:58:04 +02:00
[ft] Fix memory bug in copying bitmaps
This commit is contained in:
parent
9f9796920f
commit
a0f556f37f
1 changed files with 1 additions and 3 deletions
|
|
@ -1158,9 +1158,7 @@ _get_bitmap_surface (FT_Bitmap *bitmap,
|
|||
source = bitmap->buffer;
|
||||
dest = data;
|
||||
for (i = height; i; i--) {
|
||||
memcpy (dest, source, bitmap->pitch);
|
||||
memset (dest + bitmap->pitch, '\0', stride - bitmap->pitch);
|
||||
|
||||
memcpy (dest, source, stride);
|
||||
source += bitmap->pitch;
|
||||
dest += stride;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue