--- a/webengine/osswebengine/WebCore/platform/symbian/FontCacheSymbian.cpp Wed Mar 31 23:16:40 2010 +0300
+++ b/webengine/osswebengine/WebCore/platform/symbian/FontCacheSymbian.cpp Wed Apr 14 17:06:56 2010 +0300
@@ -233,6 +233,10 @@
fPtr.Set(fPtr.Left(comma));
}
+ if(fPtr.Length() >KMaxTypefaceNameLength) {
+ fPtr.Set(fPtr.Left(KMaxTypefaceNameLength));
+ }
+
TFontSpec fontSpec(fPtr, twipSize);
fontSpec.iFontStyle.SetStrokeWeight(fontDescription.bold() ? EStrokeWeightBold : EStrokeWeightNormal);
fontSpec.iFontStyle.SetPosture(fontDescription.italic() ? EPostureItalic : EPostureUpright);