mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-08 11:28:02 +02:00
font-subsets: fix wrong string length
This commit is contained in:
parent
c13249c63a
commit
bd44455131
1 changed files with 1 additions and 1 deletions
|
|
@ -631,7 +631,7 @@ _cairo_sub_font_map_glyph (cairo_sub_font_t *sub_font,
|
|||
return _cairo_error (CAIRO_STATUS_NO_MEMORY);
|
||||
}
|
||||
memcpy (font_utf8, text_utf8, text_utf8_len);
|
||||
font_utf8[font_utf8_len] = 0;
|
||||
font_utf8[text_utf8_len] = 0;
|
||||
font_utf8_len = text_utf8_len;
|
||||
}
|
||||
free (ucs4);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue