diff options
-rw-r--r-- | games/craft/distinfo | 3 | ||||
-rw-r--r-- | games/craft/patches/patch-xfile.hc | 15 |
2 files changed, 17 insertions, 1 deletions
diff --git a/games/craft/distinfo b/games/craft/distinfo index ab6718ed1d2..25c19351709 100644 --- a/games/craft/distinfo +++ b/games/craft/distinfo @@ -1,4 +1,4 @@ -$NetBSD: distinfo,v 1.9 2013/01/21 05:19:45 dholland Exp $ +$NetBSD: distinfo,v 1.10 2014/06/29 04:10:55 dholland Exp $ SHA1 (craft-jumbo-patch-20130120.gz) = 6396b3f4b30fd62aeb1b0d7ee4baf4bdde093f0d RMD160 (craft-jumbo-patch-20130120.gz) = 699a9114acc2fac56c47cce437a54850b47ab475 @@ -6,3 +6,4 @@ Size (craft-jumbo-patch-20130120.gz) = 12457 bytes SHA1 (craftcc35.tar.Z) = 8862b9001aa7d752a597033ef45d38ebfcee533f RMD160 (craftcc35.tar.Z) = 402a2c2ca37df4d86381b434437395424199859e Size (craftcc35.tar.Z) = 3123677 bytes +SHA1 (patch-xfile.hc) = 76815f0e03322eb6022c7f26d9db802df7be9ba1 diff --git a/games/craft/patches/patch-xfile.hc b/games/craft/patches/patch-xfile.hc new file mode 100644 index 00000000000..80dd1d61b07 --- /dev/null +++ b/games/craft/patches/patch-xfile.hc @@ -0,0 +1,15 @@ +$NetBSD: patch-xfile.hc,v 1.1 2014/06/29 04:10:55 dholland Exp $ + +Fix tautological comparison. + +--- xfile.hc~ 2014-06-29 04:04:06.000000000 +0000 ++++ xfile.hc +@@ -339,7 +339,7 @@ bool bscanf (FILE *f, int num_bytes, int + + . get_byte + {c.b = 0; +- was_eof = ((c.a.b3 = fgetc (f)) == EOF); ++ was_eof = (t = fgetc (f), c.a.b3 = t, t == EOF); + i = c.b; + }. + |