From: Robert Wilhelm (robert.wilhelm_at_gmx.net)
Date: Tue Mar 16 2004 - 16:00:54 EST
Initialize whole buffer.
No need to forward port.
Index: fp_TextRun.cpp
===================================================================
RCS file: /cvsroot/abi/src/text/fmt/xp/fp_TextRun.cpp,v
retrieving revision 1.236.2.6
diff -u -r1.236.2.6 fp_TextRun.cpp
--- fp_TextRun.cpp      1 Mar 2004 12:51:44 -0000       1.236.2.6
+++ fp_TextRun.cpp      16 Mar 2004 20:59:38 -0000
@@ -108,7 +108,7 @@
                // set the static buffers to some reasonable value
                s_pCharAdvance = new UT_sint32
[TEXTRUN_STATIC_BUFFER_SIZE];
                UT_return_if_fail(s_pCharAdvance);
-               memset (s_pCharAdvance, 0, TEXTRUN_STATIC_BUFFER_SIZE);
+               memset (s_pCharAdvance, 0, TEXTRUN_STATIC_BUFFER_SIZE *
sizeof(UT_sint32));
  
                s_pCharBuff = new UT_UCS4Char
[TEXTRUN_STATIC_BUFFER_SIZE];
                UT_return_if_fail(s_pCharBuff);
This archive was generated by hypermail 2.1.4 : Tue Mar 16 2004 - 16:03:12 EST