Kaydet (Commit) 301391a6 authored tarafından Caolán McNamara's avatar Caolán McNamara Kaydeden (comit) David Tardon

reusing i here from the outer loop is definitely bogus

Change-Id: I4ee52c76b2c1723639185bc99b85d83be5b4fdd7
(cherry picked from commit 637ad743)
Reviewed-on: https://gerrit.libreoffice.org/18686Reviewed-by: 's avatarDavid Tardon <dtardon@redhat.com>
Tested-by: 's avatarDavid Tardon <dtardon@redhat.com>
üst 4ae70fd6
......@@ -302,8 +302,8 @@ bool Section::GetDictionary( Dictionary& rDict )
nSize >>= 1;
aStream.Seek( nPos );
sal_Unicode* pWString = reinterpret_cast<sal_Unicode*>(pString);
for ( i = 0; i < nSize; i++ )
aStream.ReadUInt16( pWString[ i ] );
for (sal_uInt32 j = 0; j < nSize; ++j)
aStream.ReadUInt16(pWString[j]);
aString = OUString(pWString, lcl_getMaxSafeStrLen(nSize));
}
else
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment