summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--games/quake2forge/Makefile2
-rw-r--r--games/quake2forge/files/patch-main.c18
2 files changed, 19 insertions, 1 deletions
diff --git a/games/quake2forge/Makefile b/games/quake2forge/Makefile
index fbadebcd9fe8..b89f7136c137 100644
--- a/games/quake2forge/Makefile
+++ b/games/quake2forge/Makefile
@@ -89,6 +89,6 @@ do-install:
.endif
post-install:
- @${CAT} ${PKGMESSAGE} | ${SED} -e 's#$${PREFIX}#${PREFIX}#g'
+ @${SED} -e 's#$${PREFIX}#${PREFIX}#g' ${PKGMESSAGE}
.include <bsd.port.post.mk>
diff --git a/games/quake2forge/files/patch-main.c b/games/quake2forge/files/patch-main.c
index 8979f8a45349..78718d143537 100644
--- a/games/quake2forge/files/patch-main.c
+++ b/games/quake2forge/files/patch-main.c
@@ -22,3 +22,21 @@
#endif
#include "qcommon.h"
+@@ -518,7 +527,7 @@
+ ret = fread(ptr, size, nitems, fp);
+ err = errno;
+ if (ret != nitems) {
+- printf("verify_fread(...,%d,%d,...): return value: %d\n", size, nitems, ret);
++ printf("verify_fread(...,%zu,%zu,...): return value: %zu\n", size, nitems, ret);
+ if (ret == 0 && ferror(fp)) {
+ printf(" error: %s\n", strerror(err));
+ printf(" fileno=%d\n", fileno(fp));
+@@ -536,7 +545,7 @@
+ ret = fwrite(ptr, size, nitems, fp);
+ err = errno;
+ if (ret != nitems) {
+- printf("verify_fwrite(...,%d,%d,...) = %d\n", size, nitems, ret);
++ printf("verify_fwrite(...,%zu,%zu,...) = %zu\n", size, nitems, ret);
+ if (ret == 0 && ferror(fp)) {
+ printf(" error: %s\n", strerror(err));
+ printf(" fileno=%d\n", fileno(fp));