Skip to content
Permalink
Browse files
Quick fix.
  • Loading branch information
icculus committed Mar 25, 2002
1 parent f2887cf commit dfe65649dfb4b86941dd19f0c8804dad9d4a4286
Showing with 2 additions and 2 deletions.
  1. +2 −2 platform/unix.c
@@ -588,11 +588,11 @@ PHYSFS_sint64 __PHYSFS_platformRead(void *opaque, void *buffer,
} /* __PHYSFS_platformRead */


PHYSFS_sint64 __PHYSFS_platformWrite(void *opaque, void *buffer,
PHYSFS_sint64 __PHYSFS_platformWrite(void *opaque, const void *buffer,
PHYSFS_uint32 size, PHYSFS_uint32 count)
{
FILE *io = (FILE *) opaque;
int rc = fwrite(buffer, size, count, io);
int rc = fwrite((void *) buffer, size, count, io);
if (rc < count)
__PHYSFS_setError(strerror(errno));

0 comments on commit dfe6564

Please sign in to comment.