summaryrefslogtreecommitdiffstats
path: root/src/kernel/qimage.cpp
diff options
context:
space:
mode:
authorSlávek Banko <[email protected]>2014-05-19 19:06:53 +0200
committerSlávek Banko <[email protected]>2014-05-19 19:06:53 +0200
commitd5059601e64882a848f6e6730690c270c7b120c2 (patch)
tree58cb18bb5f40bea14d948d02444b634d839826a9 /src/kernel/qimage.cpp
parenta9ec6a155692c862edda1799b48cb5cd9ce52e81 (diff)
downloadtqt3-d5059601e64882a848f6e6730690c270c7b120c2.tar.gz
tqt3-d5059601e64882a848f6e6730690c270c7b120c2.zip
Fix overwriting memory for an application icon
This resolves Bug 2033
Diffstat (limited to 'src/kernel/qimage.cpp')
-rw-r--r--src/kernel/qimage.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/kernel/qimage.cpp b/src/kernel/qimage.cpp
index 059b5bafc..a22b744a9 100644
--- a/src/kernel/qimage.cpp
+++ b/src/kernel/qimage.cpp
@@ -1531,12 +1531,12 @@ static bool convert_32_to_8( const TQImage *src, TQImage *dst, int conversion_fl
int* line2[3];
int* pv[3];
if ( ( conversion_flags & TQt::Dither_Mask ) == TQt::DiffuseDither ) {
- line1[0] = new int[src->width()];
- line2[0] = new int[src->width()];
- line1[1] = new int[src->width()];
- line2[1] = new int[src->width()];
- line1[2] = new int[src->width()];
- line2[2] = new int[src->width()];
+ line1[0] = new int[sw];
+ line2[0] = new int[sw];
+ line1[1] = new int[sw];
+ line2[1] = new int[sw];
+ line1[2] = new int[sw];
+ line2[2] = new int[sw];
pv[0] = new int[sw];
pv[1] = new int[sw];
pv[2] = new int[sw];