[cp-patches] FYI: Bug fix to last patch

Andrew John Hughes gnu_andrew at member.fsf.org
Thu Dec 18 00:42:59 UTC 2008


This is a bug fix for my last patch; forgot to add the null terminator
needed for C strings...

2008-12-18  Andrew John Hughes  <gnu_andrew at member.fsf.org>

	* native/jni/gtk-peer/gnu_java_awt_peer_gtk_FreetypeGlyphVector.c:
	Include '\0' in the string.

-- 
Andrew :)

Support Free Java!
Contribute to GNU Classpath and the OpenJDK
http://www.gnu.org/software/classpath
http://openjdk.java.net
PGP Key: 94EFD9D8 (http://subkeys.pgp.net)
Fingerprint = F8EF F1EA 401E 2E60 15FA  7927 142C 2591 94EF D9D8
-------------- next part --------------
Index: native/jni/gtk-peer/gnu_java_awt_peer_gtk_FreetypeGlyphVector.c
===================================================================
RCS file: /sources/classpath/classpath/native/jni/gtk-peer/gnu_java_awt_peer_gtk_FreetypeGlyphVector.c,v
retrieving revision 1.11
diff -u -u -r1.11 gnu_java_awt_peer_gtk_FreetypeGlyphVector.c
--- native/jni/gtk-peer/gnu_java_awt_peer_gtk_FreetypeGlyphVector.c	10 Dec 2008 22:19:27 -0000	1.11
+++ native/jni/gtk-peer/gnu_java_awt_peer_gtk_FreetypeGlyphVector.c	16 Dec 2008 18:09:41 -0000
@@ -392,12 +392,13 @@
     }
   else
     {
-      char format[4];
+      char format[5];
 
       format[0] = (glyph->format & 0xFF000000) >> 24;
       format[1] = (glyph->format & 0x00FF0000) >> 16;
       format[2] = (glyph->format & 0x0000FF00) >> 8;
       format[3] = (glyph->format & 0x000000FF);
+      format[4] = '\0';
       printf("WARNING: Unable to create outline for font %s %s of format %s\n",
 	     ft_face->family_name, ft_face->style_name, format);
     }


More information about the Classpath-patches mailing list