physfs.c
changeset 533 a01da4bcee68
parent 508 0e75524a96af
child 538 8752e3c0dbf9
--- a/physfs.c	Tue Jan 07 23:35:10 2003 +0000
+++ b/physfs.c	Tue Jan 28 18:27:44 2003 +0000
@@ -1816,6 +1816,7 @@
 {
     FileHandle *h = (FileHandle *) handle->opaque;
     BAIL_IF_MACRO(!PHYSFS_flush(handle), NULL, 0);
+    h->buffill = h->bufpos = 0;     /* just in case. */
     return(h->funcs->seek(h, pos));
 } /* PHYSFS_seek */
 
@@ -1880,7 +1881,6 @@
     /* dump buffer to disk. */
     rc = h->funcs->write(h, h->buffer + h->bufpos, h->buffill - h->bufpos, 1);
     BAIL_IF_MACRO(rc <= 0, NULL, 0);
-
     h->bufpos = h->buffill = 0;
     return(1);
 } /* PHYSFS_flush */