diff options
author | jp <jp@openoffice.org> | 2001-05-04 14:46:38 +0000 |
---|---|---|
committer | jp <jp@openoffice.org> | 2001-05-04 14:46:38 +0000 |
commit | afdf36f742a20bda61695cdf01c55b5952a5a848 (patch) | |
tree | 6d6ba22e6dd9c97403b708c63ef31351884ee64a /sot | |
parent | abe0dda84e76e384b4d05a6779d3beb59ef8aa3c (diff) |
don't read over stream EOF
Diffstat (limited to 'sot')
-rw-r--r-- | sot/source/base/filelist.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sot/source/base/filelist.cxx b/sot/source/base/filelist.cxx index 50cf320bc05b..8623b247d281 100644 --- a/sot/source/base/filelist.cxx +++ b/sot/source/base/filelist.cxx @@ -2,9 +2,9 @@ * * $RCSfile: filelist.cxx,v $ * - * $Revision: 1.1.1.1 $ + * $Revision: 1.2 $ * - * last change: $Author: hr $ $Date: 2000-09-18 16:56:51 $ + * last change: $Author: jp $ $Date: 2001-05-04 15:46:38 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -263,12 +263,12 @@ SvStream& operator>>( SvStream& rIStm, FileList& rFileList ) rIStm >> c; } - while( cLast ); + while( cLast && !rIStm.IsEof() ); // String in die Liste stopfen rFileList.AppendFile( String(aStr, RTL_TEXTENCODING_ASCII_US)); } - while( c ); // c == 0 && cLast == 0 -> Ende + while( c && !rIStm.IsEof() ); // c == 0 && cLast == 0 -> Ende return rIStm; } |