Browse Source

Fixed OpenAppend to actually open for append. Used "wb+" instead of "ab".

Ryan C. Gordon 24 năm trước cách đây
mục cha
commit
a2c89d7ad2
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      platform/unix.c

+ 1 - 1
platform/unix.c

@@ -581,7 +581,7 @@ void *__PHYSFS_platformOpenWrite(const char *filename)
 
 void *__PHYSFS_platformOpenAppend(const char *filename)
 {
-    return(doOpen(filename, "wb+"));
+    return(doOpen(filename, "ab"));
 } /* __PHYSFS_platformOpenAppend */