summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2011-07-06 22:18:32 +0100
committerCaolán McNamara <caolanm@redhat.com>2011-07-07 11:02:38 +0100
commitcd1a0417cbde685ce5c889c4002097918df4762f (patch)
treed6e531030cde4276df7b9064066989816763f542
parentebcbc63440618c570010daf3abaccaf63660f9c9 (diff)
clip nSprmSiz to available data
-rw-r--r--sw/source/filter/ww8/ww8scan.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/filter/ww8/ww8scan.cxx b/sw/source/filter/ww8/ww8scan.cxx
index e3be8ca025..57a7096115 100644
--- a/sw/source/filter/ww8/ww8scan.cxx
+++ b/sw/source/filter/ww8/ww8scan.cxx
@@ -3447,7 +3447,7 @@ void WW8PLCFx_SEPX::GetSprms(WW8PLCFxDesc* p)
nArrMax = nSprmSiz; // Hole mehr Speicher
pSprms = new sal_uInt8[nArrMax];
}
- pStrm->Read( pSprms, nSprmSiz ); // read Sprms
+ nSprmSiz = pStrm->Read(pSprms, nSprmSiz); // read Sprms
p->nSprmsLen = nSprmSiz;
p->pMemPos = pSprms; // return Position