Fixed OpenAppend to actually open for append. Used "wb+" instead of "ab".
authorRyan C. Gordon <icculus@icculus.org>
Thu, 16 May 2002 07:08:59 +0000
changeset 220 96de4a3cd8fb
parent 219 b2f4564c219f
child 221 3f3aea6eebd4
Fixed OpenAppend to actually open for append. Used "wb+" instead of "ab".
platform/unix.c
--- a/platform/unix.c	Thu May 16 02:45:19 2002 +0000
+++ b/platform/unix.c	Thu May 16 07:08:59 2002 +0000
@@ -581,7 +581,7 @@
 
 void *__PHYSFS_platformOpenAppend(const char *filename)
 {
-    return(doOpen(filename, "wb+"));
+    return(doOpen(filename, "ab"));
 } /* __PHYSFS_platformOpenAppend */