diff options
author | Daichi GOTO <daichi@FreeBSD.org> | 2003-06-27 03:59:03 +0000 |
---|---|---|
committer | Daichi GOTO <daichi@FreeBSD.org> | 2003-06-27 03:59:03 +0000 |
commit | cd2c175bc39d93404d0bf5f27ef511866cd87314 (patch) | |
tree | e408689c28484be844e7b7b5d6f72b4f97afeb64 /games/quake2forge/files/patch-main.c | |
parent | Increase a buffer size to avoid overflow. Bump PORTREVISION. (diff) |
Unbreak games/quake2forge on 5.1/alpha
- Unbreak Quake2 on Alpha
- Remove useless use of cat
PR: 53758
Submitted by: Ulrich Spoerlein <q@uni.de> (maintainer)
Notes
Notes:
svn path=/head/; revision=83706
Diffstat (limited to '')
-rw-r--r-- | games/quake2forge/files/patch-main.c | 18 |
1 files changed, 18 insertions, 0 deletions
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)); |