From 18f5ea2fcfe40232590da5794284d4b80633f913 Mon Sep 17 00:00:00 2001 From: pixel Date: Thu, 1 Dec 2005 13:18:02 +0000 Subject: notrunc wasn't working properly.. --- lib/Output.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'lib') 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 #include @@ -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; -- cgit v1.2.3