freebsd-ports/archivers/packddir/files/patch-upackddir.c
Max Brazhnikov 58eb7cf183 Add new port archivers/packddir:
PackdDir creates and unpacks PackdDir archives,
which are used in Quake (I and II) and others.

WWW:	http://www.nongnu.org/packddir/

PR:		ports/138078
Submitted by:	Ayumi M <ayu at commun.jp>
2009-08-23 16:07:48 +00:00

20 lines
517 B
C

--- upackddir.c.orig 2009-08-22 04:48:16.000000000 +0900
+++ upackddir.c 2009-08-22 04:48:39.000000000 +0900
@@ -253,7 +253,7 @@
}
/* Let's jump to the beginning of our sweet data */
- (char *) mapped += n;
+ mapped += n;
for (i = 0; i < pack->numfiles; i++) {
fprintf(stderr, "%s\n", mapped->name);
@@ -297,7 +297,7 @@
}
/* Let's jump to the beginning of our sweet data */
- (char *) mapped += n;
+ mapped += n;
for (i = 0; i < pack->numfiles; i++) {
if (strcmp(name, mapped->name) == 0) {