From dfe65649dfb4b86941dd19f0c8804dad9d4a4286 Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Mon, 25 Mar 2002 04:02:27 +0000 Subject: [PATCH] Quick fix. --- platform/unix.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/platform/unix.c b/platform/unix.c index dc3e05e4..ea5b72e1 100644 --- a/platform/unix.c +++ b/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));