Index: source/filter/excel/xicontent.cxx =================================================================== RCS file: /cvs/sc/sc/source/filter/excel/xicontent.cxx,v retrieving revision 1.6 diff -u -r1.6 xicontent.cxx --- source/filter/excel/xicontent.cxx 16 Sep 2003 08:16:42 -0000 1.6 +++ source/filter/excel/xicontent.cxx 6 Nov 2003 19:13:26 -0000 @@ -379,6 +379,10 @@ if( ::get_flag( nFlags, EXC_HLINK_FRAME ) ) lclIgnoreString32( rStrm, true ); + // URL fields are zero-terminated - do not let the stream replace them + // in the lclAppendString32() with the '?' character. + rStrm.SetNulSubstChar( '\0' ); + // UNC path if( ::get_flag( nFlags, EXC_HLINK_UNC ) ) { @@ -432,6 +436,8 @@ pTextMark.reset( new String ); lclAppendString32( *pTextMark, rStrm, true ); } + + rStrm.SetNulSubstChar(); // back to default DBG_ASSERT( !rStrm.GetRecLeft(), "XclImpHyperlink::ReadHlink - record size mismatch" );