aboutsummaryrefslogtreecommitdiff
path: root/common/file.h
diff options
context:
space:
mode:
authorMax Horn2003-05-28 19:03:12 +0000
committerMax Horn2003-05-28 19:03:12 +0000
commit2dd2e99cabd70b4375cfae97771d340591956024 (patch)
tree61b0524c60b5b70261a6789a84da759db48f3723 /common/file.h
parent798d23c6a8dcb609de8920e84f3ee8bf76f5ebab (diff)
downloadscummvm-rg350-2dd2e99cabd70b4375cfae97771d340591956024.tar.gz
scummvm-rg350-2dd2e99cabd70b4375cfae97771d340591956024.tar.bz2
scummvm-rg350-2dd2e99cabd70b4375cfae97771d340591956024.zip
the _encbyte code was evil, because it modified the memory passed to write(); worse, though, it incremented ptr2, which then was later passed to fwrite - hence if used to write something while _encbyte != 0, write() resulted in wrong data being written
svn-id: r8055
Diffstat (limited to 'common/file.h')
-rw-r--r--common/file.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/file.h b/common/file.h
index c6b9e72a4f..6d4cc7c545 100644
--- a/common/file.h
+++ b/common/file.h
@@ -60,7 +60,7 @@ public:
uint32 readUint32LE();
uint16 readUint16BE();
uint32 readUint32BE();
- uint32 write(void *ptr, uint32 size);
+ uint32 write(const void *ptr, uint32 size);
void writeByte(byte value);
void writeUint16LE(uint16 value);
void writeUint32LE(uint32 value);