diff options
author | Vladimir Glazounov <vg@openoffice.org> | 2003-05-26 07:29:06 +0000 |
---|---|---|
committer | Vladimir Glazounov <vg@openoffice.org> | 2003-05-26 07:29:06 +0000 |
commit | d4b8525ec9a5e90c39d31ae02b1285e9fe95a10e (patch) | |
tree | 88913760099eade7891102ee351507fb8497ccab /sfx2/source/doc/docinf.cxx | |
parent | ca610c8afcd042cd51f59e982b69a6cdc962be58 (diff) |
INTEGRATION: CWS fwk03 (1.23.20); FILE MERGED
2003/05/16 09:55:38 mba 1.23.20.1: #109683#: truncate strings with 0-Bytes
Diffstat (limited to 'sfx2/source/doc/docinf.cxx')
-rw-r--r-- | sfx2/source/doc/docinf.cxx | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/sfx2/source/doc/docinf.cxx b/sfx2/source/doc/docinf.cxx index b728046072c8..671d3b0a30ee 100644 --- a/sfx2/source/doc/docinf.cxx +++ b/sfx2/source/doc/docinf.cxx @@ -2,9 +2,9 @@ * * $RCSfile: docinf.cxx,v $ * - * $Revision: 1.23 $ + * $Revision: 1.24 $ * - * last change: $Author: vg $ $Date: 2003-04-17 16:10:01 $ + * last change: $Author: vg $ $Date: 2003-05-26 08:29:06 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -269,6 +269,10 @@ ULONG SfxPSStringProperty_Impl::Load( SvStream& rStream ) else aString.Erase(); + USHORT nPos=0; + if ( (nPos = aString.Search( (sal_Unicode)'\0') ) != STRING_NOTFOUND ) + aString.Erase( nPos ); + return rStream.GetErrorCode(); } |