diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-07-06 22:18:32 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-07-07 11:02:38 +0100 |
commit | cd1a0417cbde685ce5c889c4002097918df4762f (patch) | |
tree | d6e531030cde4276df7b9064066989816763f542 | |
parent | ebcbc63440618c570010daf3abaccaf63660f9c9 (diff) |
clip nSprmSiz to available data
-rw-r--r-- | sw/source/filter/ww8/ww8scan.cxx | 2 |
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 |