Bug 235913: Random crashes while printing on Solaris, patch by Roland Mainz, r=biesi, sr=bz

This commit is contained in:
chanial%noos.fr 2004-02-29 23:04:37 +00:00
parent 57c9a7c807
commit cdfa7d1d63

View File

@ -1248,7 +1248,8 @@ nsFontMetricsXlibContext::Init(nsIDeviceContext *aDevice, PRBool aPrintermode)
if (NS_SUCCEEDED(rv))
mAllowDoubleByteSpecialChars = val;
PRUint32 dbmapSize = sizeof(gDoubleByteSpecialCharsCCMap);
/* Make sure we allocate/copy enougth (see http://bugzilla.mozilla.org/show_bug.cgi?id=235913#c12)*/
PRUint32 dbmapSize = sizeof(gDoubleByteSpecialCharsCCMapUnion);
mDoubleByteSpecialCharsCCMap = (PRUint16*)PR_Malloc(dbmapSize);
if (!mDoubleByteSpecialCharsCCMap)
return NS_ERROR_OUT_OF_MEMORY;