diff options
author | pixel <pixel> | 2005-12-01 13:18:02 +0000 |
---|---|---|
committer | pixel <pixel> | 2005-12-01 13:18:02 +0000 |
commit | 18f5ea2fcfe40232590da5794284d4b80633f913 (patch) | |
tree | e01a3bfa5a5901970b75a9440ee02ac8da6ca8bd /lib | |
parent | 65e8802fe20e9f882062683f287108d2e2436719 (diff) |
notrunc wasn't working properly..
Diffstat (limited to 'lib')
-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; |