From b2f133f9accf5d9bf48bd63131fcd716757aa21a Mon Sep 17 00:00:00 2001 From: Bradley Bell Date: Fri, 25 Jul 2003 05:00:12 +0000 Subject: [PATCH] update raw_position in cfwrite --- ChangeLog | 4 ++-- cfile/cfile.c | 6 ++---- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/ChangeLog b/ChangeLog index ed8fb159..89e3eac8 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,6 +1,6 @@ -2003-07-15 Martin Schaffner +2003-07-24 Martin Schaffner - * cfile/cfile.c: update raw pointer in cfwrite + * cfile/cfile.c: update raw_position in cfwrite 2003-06-22 Bradley Bell diff --git a/cfile/cfile.c b/cfile/cfile.c index 42479d2f..79fa856b 100644 --- a/cfile/cfile.c +++ b/cfile/cfile.c @@ -1,4 +1,4 @@ -/* $Id: cfile.c,v 1.14 2003-07-23 05:48:36 btb Exp $ */ +/* $Id: cfile.c,v 1.15 2003-07-25 05:00:12 btb Exp $ */ /* THE COMPUTER CODE CONTAINED HEREIN IS THE SOLE PROPERTY OF PARALLAX SOFTWARE CORPORATION ("PARALLAX"). PARALLAX, IN DISTRIBUTING THE CODE TO @@ -561,9 +561,7 @@ int cfwrite(void *buf, int elsize, int nelem, CFILE *cfile) Assert(cfile->lib_offset == 0); items_written = fwrite(buf, elsize, nelem, cfile->file); - - cfile->raw_position += items_written; - Assert(cfile->raw_position == ftell(cfile->file)); + cfile->raw_position = ftell(cfile->file); return items_written; } -- 2.39.2