aboutsummaryrefslogtreecommitdiff
path: root/games/viruskiller/files
diff options
context:
space:
mode:
authorMartin Wilke <miwi@FreeBSD.org>2014-02-27 09:24:15 +0000
committerMartin Wilke <miwi@FreeBSD.org>2014-02-27 09:24:15 +0000
commitf6daf54c013cbfa34e7e2852979444b410d46db6 (patch)
treee70bacc5913dd2038305fff82da6e72d56c0aada /games/viruskiller/files
parent8369f3b7e6e3499744faf11b3231697e09e60dd4 (diff)
Notes
Diffstat (limited to 'games/viruskiller/files')
-rw-r--r--games/viruskiller/files/patch-src__pak.cpp27
1 files changed, 27 insertions, 0 deletions
diff --git a/games/viruskiller/files/patch-src__pak.cpp b/games/viruskiller/files/patch-src__pak.cpp
new file mode 100644
index 000000000000..2e2457ebc384
--- /dev/null
+++ b/games/viruskiller/files/patch-src__pak.cpp
@@ -0,0 +1,27 @@
+--- src/pak.cpp.orig
++++ src/pak.cpp
+@@ -124,7 +124,7 @@
+ {
+ printf("Couldn't open %s for reading!\n", filename);
+ closedir(dirp);
+- gzclose(pak);
++ gzclose((gzFile)pak);
+ exit(1);
+ }
+
+@@ -156,13 +156,13 @@
+ {
+ printf("Couldn't open %s for reading!\n", filename);
+ closedir(dirp);
+- gzclose(pak);
++ gzclose((gzFile)pak);
+ exit(1);
+ }
+ else
+ {
+ fSize = gzread(fp, buffer, filesize);
+- gzclose(fp);
++ gzclose((gzFile)fp);
+
+ cSize = (uLongf)((fSize * 1.01) + 12);
+ compress2(output, &cSize, buffer, fSize, 9);