diff options
-rw-r--r-- | lib/Output.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/Output.cc b/lib/Output.cc index ab5a583..c041ad4 100644 --- a/lib/Output.cc +++ b/lib/Output.cc @@ -17,7 +17,7 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ -/* $Id: Output.cc,v 1.23 2005-02-17 08:33:50 pixel Exp $ */ +/* $Id: Output.cc,v 1.24 2005-12-01 13:18:02 pixel Exp $ */ #include <stdio.h> #include <string.h> @@ -49,7 +49,8 @@ Output::Output(String no, int create, int trunc) throw (GeneralException) : } size = lseek(GetHandle(), 0, SEEK_END); - lseek(GetHandle(), 0, SEEK_SET); + if (trunc) + lseek(GetHandle(), 0, SEEK_SET); #ifndef __MIPSEL__ struct stat s; |