aboutsummaryrefslogtreecommitdiff
path: root/games/quakeforge/files/patch-ab
diff options
context:
space:
mode:
Diffstat (limited to 'games/quakeforge/files/patch-ab')
-rw-r--r--games/quakeforge/files/patch-ab19
1 files changed, 0 insertions, 19 deletions
diff --git a/games/quakeforge/files/patch-ab b/games/quakeforge/files/patch-ab
deleted file mode 100644
index 57a656c45c55..000000000000
--- a/games/quakeforge/files/patch-ab
+++ /dev/null
@@ -1,19 +0,0 @@
---- libs/util/quakeio.c.orig 16 Oct 2002 04:59:34 -0000 1.18
-+++ libs/util/quakeio.c 24 Oct 2002 22:36:15 -0000 1.19
-@@ -425,8 +425,14 @@
- res = fseek (file->file, offset, whence);
- break;
- case SEEK_END:
-- res = fseek (file->file,
-- file->start + file->size - offset, SEEK_SET);
-+ if (file->size == -1) {
-+ // we don't know the size (due to writing) so punt and
-+ // pass on the request as-is
-+ res = fseek (file->file, offset, SEEK_END);
-+ } else {
-+ res = fseek (file->file,
-+ file->start + file->size - offset, SEEK_SET);
-+ }
- break;
- default:
- errno = EINVAL;