Remove incorrect string length calculation

Ian Pilcher ian.pilcher at home.com
Wed Jun 6 10:10:45 CDT 2001


Modified files:
    dlls/wineps: truetype.c

Log message:
    Ian Pilcher
    Remove incorrect string length calculation in WINEPS
-- 
========================================================================
Ian Pilcher                                         ian.pilcher at home.com
========================================================================
-------------- next part --------------
diff -urN ../wine-20010604cvs/dlls/wineps/truetype.c ./dlls/wineps/truetype.c
--- ../wine-20010604cvs/dlls/wineps/truetype.c	Tue May 29 18:16:33 2001
+++ ./dlls/wineps/truetype.c	Wed Jun  6 09:40:00 2001
@@ -103,8 +103,8 @@
     }
     else
     {
-    	afm->EncodingScheme = HeapAlloc(PSDRV_Heap, 0,
-	    	sizeof("WindowsUnknown") + 1 + charmap->encoding_id / 10);
+    	afm->EncodingScheme = HeapAlloc(PSDRV_Heap, 0,	    /* encoding_id   */
+	    	sizeof("WindowsUnknown65535"));     	    /*   is a UShort */
 	if (afm->EncodingScheme == NULL)
 	    return FALSE;
 	    


More information about the wine-patches mailing list