diff options
author | Pav Lucistnik <pav@FreeBSD.org> | 2005-02-16 21:33:18 +0000 |
---|---|---|
committer | Pav Lucistnik <pav@FreeBSD.org> | 2005-02-16 21:33:18 +0000 |
commit | 3663592c36f0fceee037dd76c18d1c95dad0519f (patch) | |
tree | 8c1c547874004db16933c27fb77b4f8df80da4aa /games/daimonin | |
parent | BSD# Project is taking the maintainership, as for lang/mono, tmclaugh wants (diff) |
- Fix runtime on amd64
Notes
Notes:
svn path=/head/; revision=129043
Diffstat (limited to 'games/daimonin')
-rw-r--r-- | games/daimonin/files/patch-src-uncompr.c | 11 | ||||
-rw-r--r-- | games/daimonin/files/patch-src-wrapper.c | 20 |
2 files changed, 31 insertions, 0 deletions
diff --git a/games/daimonin/files/patch-src-uncompr.c b/games/daimonin/files/patch-src-uncompr.c new file mode 100644 index 000000000000..c1a124362981 --- /dev/null +++ b/games/daimonin/files/patch-src-uncompr.c @@ -0,0 +1,11 @@ +--- ../../src/uncompr.c.orig Sun Nov 30 22:59:30 2003 ++++ ../../src/uncompr.c Wed Feb 16 22:11:32 2005 +@@ -39,7 +39,7 @@ + + stream.next_out = dest; + stream.avail_out = (uInt)*destLen; +- if ((uLong)stream.avail_out != *destLen) return Z_BUF_ERROR; ++ if ((uLong)stream.avail_out != (uInt)*destLen) return Z_BUF_ERROR; + + stream.zalloc = (alloc_func)0; + stream.zfree = (free_func)0; diff --git a/games/daimonin/files/patch-src-wrapper.c b/games/daimonin/files/patch-src-wrapper.c new file mode 100644 index 000000000000..dc78b4bafbe7 --- /dev/null +++ b/games/daimonin/files/patch-src-wrapper.c @@ -0,0 +1,20 @@ +--- ../../src/wrapper.c.orig Thu Dec 18 22:43:08 2003 ++++ ../../src/wrapper.c Wed Feb 16 10:09:17 2005 +@@ -44,13 +44,15 @@ + } + if(!logstream) /* secure: we have no open stream*/ + flag = FALSE; +- va_start(ap, format); + if(flag) + { ++ va_start(ap, format); + vfprintf(stdout, format, ap); ++ va_end(ap); ++ va_start(ap, format); + vfprintf(logstream, format, ap); ++ va_end(ap); + } +- va_end(ap); + fflush(logstream); + + #endif |