aboutsummaryrefslogtreecommitdiff
path: root/games/lianliankan/files/patch-src_pak_pak.c
diff options
context:
space:
mode:
Diffstat (limited to 'games/lianliankan/files/patch-src_pak_pak.c')
-rw-r--r--games/lianliankan/files/patch-src_pak_pak.c24
1 files changed, 21 insertions, 3 deletions
diff --git a/games/lianliankan/files/patch-src_pak_pak.c b/games/lianliankan/files/patch-src_pak_pak.c
index ad2491d4c86f..ef79dd622215 100644
--- a/games/lianliankan/files/patch-src_pak_pak.c
+++ b/games/lianliankan/files/patch-src_pak_pak.c
@@ -1,5 +1,5 @@
---- src/pak/pak.c.orig Mon Apr 3 21:41:15 2006
-+++ src/pak/pak.c Mon Apr 3 21:45:37 2006
+--- src/pak/pak.c.orig Sun Oct 23 04:36:59 2005
++++ src/pak/pak.c Thu May 25 00:54:16 2006
@@ -249,11 +249,7 @@
/* Set the position in the PAK file for this file to be written at */
@@ -26,7 +26,25 @@
fsetpos( ReadStream, &Pos );
/* Loop through the file by it's size and read from the PAK
-@@ -488,11 +480,7 @@
+@@ -453,6 +445,9 @@
+ fpos_t Pos; /* Offset in to file */
+ guchar Buffer = 0; /* A read buffer */
+ guint32 Count;
++
++ gchar tmpstr[40];
++
+ /* Declare a temporary file table node to work from */
+ struct sFileTableEntry* Current;
+
+@@ -476,7 +471,6 @@
+ if( !ReadStream )
+ return FALSE;
+ /* Attempt to open the write stream for creating the file */
+- gchar tmpstr[40];
+ sprintf(tmpstr,"/tmp/llk_%s",Current->szFileName);
+ WriteStream = fopen( tmpstr, "wb" );
+ if( !WriteStream )
+@@ -488,11 +482,7 @@
/* Set the offset in PAK to the beginning of this particular file
to be extracted */
/* If not GNU system,this should be Pos = Current->dwOffset */