summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorHerbert Dürr <hdu@apache.org>2012-06-18 14:04:55 +0000
committerCaolán McNamara <caolanm@redhat.com>2013-03-06 12:31:42 +0000
commitc407de35fb9ebf1a585fe490dbf353f7e1a01dd1 (patch)
treef3a71f6b1cfa2009d092025af3d423c6bb724eaa /vcl
parenta424a01a735b117a0a0913b5e322ee9005407844 (diff)
c#706125# fix overallocation on 64bit platforms
(cherry picked from commit febadae3d165ba12f2f7944b441fdfc328a3725a) Conflicts: vcl/source/gdi/sallayout.cxx Change-Id: I928bbf253cb5f7824b870ca77d04d3e453af67bd
Diffstat (limited to 'vcl')
-rw-r--r--vcl/source/gdi/sallayout.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/source/gdi/sallayout.cxx b/vcl/source/gdi/sallayout.cxx
index 695256ca3990..c0aae95187ae 100644
--- a/vcl/source/gdi/sallayout.cxx
+++ b/vcl/source/gdi/sallayout.cxx
@@ -981,7 +981,7 @@ void GenericSalLayout::ApplyDXArray( ImplLayoutArgs& rArgs )
}
// calculate adjusted cluster widths
- sal_Int32* pNewGlyphWidths = (sal_Int32*)alloca( m_GlyphItems.size() * sizeof(long) );
+ sal_Int32* pNewGlyphWidths = (sal_Int32*)alloca( m_GlyphItems.size() * sizeof(sal_Int32) );
for( i = 0; i < m_GlyphItems.size(); ++i )
pNewGlyphWidths[ i ] = 0;