commit 2555548
Michael Forney
·
2014-02-13 21:10:14 +0000 UTC
parent b629099
pixman: Use strlen if length == -1
1 files changed,
+1,
-1
M
pixman.c
M
pixman.c
+1,
-1
1@@ -336,7 +336,7 @@ void renderer_draw_text(struct wld_renderer * base,
2 uint32_t c;
3 struct glyph * glyph;
4 FT_UInt glyph_index;
5- pixman_glyph_t glyphs[strlen(text)];
6+ pixman_glyph_t glyphs[length == -1 ? strlen(text) : length];
7 uint32_t index = 0, origin_x = 0;
8 pixman_color_t pixman_color = PIXMAN_COLOR(color);
9 pixman_image_t * solid;