]> git.imager.perl.org - imager.git/blobdiff - FT2/FT2.xs
improve error reporting for the polygon method
[imager.git] / FT2 / FT2.xs
index 5ecdcd0583d5a6ce35efbc3a62888e641ea6b93d..7b9a8b9f72427122e61d3eb6707dfa62ee9b41c3 100644 (file)
@@ -303,7 +303,7 @@ i_ft2_glyph_name(handle, text_sv, utf8 = 0, reliable_only = 1)
             ch = *text++;
             --len;
           }
-          EXTEND(SP, count);
+          EXTEND(SP, count+1);
           if (i_ft2_glyph_name(handle, ch, name, sizeof(name), 
                                          reliable_only)) {
             ST(count) = sv_2mortal(newSVpv(name, 0));