[cairo-commit] src/cairo-scaled-font-subsets.c

Adrian Johnson ajohnson at kemper.freedesktop.org
Wed Aug 24 04:06:35 PDT 2011


 src/cairo-scaled-font-subsets.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit bd4445513137821c6165461210372d02a72f72bb
Author: Adrian Johnson <ajohnson at redneon.com>
Date:   Wed Aug 24 20:35:10 2011 +0930

    font-subsets: fix wrong string length

diff --git a/src/cairo-scaled-font-subsets.c b/src/cairo-scaled-font-subsets.c
index 2ac2589..f24a86a 100644
--- a/src/cairo-scaled-font-subsets.c
+++ b/src/cairo-scaled-font-subsets.c
@@ -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);


More information about the cairo-commit mailing list