File: size_chunks_reverse.patch

package info (click to toggle)
funguloids 1.06-16
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 21,348 kB
  • sloc: cpp: 5,081; ansic: 3,285; python: 207; makefile: 154
file content (14 lines) | stat: -rw-r--r-- 512 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
Description: Correction for MPakDataStream::read(). This reflects what's done in the
 FileHandleDataStream::read() method in OgreDataStream.cpp in the Ogre library.
Forwarded: http://funguloids.sourceforge.net/files/funguloids-patches.tar.bz2
--- a/src/mpakogre.cpp
+++ b/src/mpakogre.cpp
@@ -219,7 +219,7 @@
 }
 
 size_t MPakDataStream::read(void *buf, size_t count) {
-	return fread(buf, count, 1, mFileHandle);
+	return fread(buf, 1, count, mFileHandle);
 }
 
 void MPakDataStream::skip(long count) {