r9362 - packages/trunk/xmahjongg/debian/patches

Peter Pentchev roam-guest at alioth.debian.org
Fri Apr 3 11:51:32 UTC 2009


Author: roam-guest
Date: 2009-04-03 11:51:31 +0000 (Fri, 03 Apr 2009)
New Revision: 9362

Modified:
   packages/trunk/xmahjongg/debian/patches/04-gif-read-errors.patch
Log:
ARRRRGH!  Score one for well-meant yet not-quite-thought-out patches...

Invert a test so that xmahjongg's GIF library actually manages to
read GIF images from a memory buffer instead of just skipping
the rest and segfaulting a couple of steps down the line.

Reported by:	tolimar
Pointy hat to:	myself


Modified: packages/trunk/xmahjongg/debian/patches/04-gif-read-errors.patch
===================================================================
--- packages/trunk/xmahjongg/debian/patches/04-gif-read-errors.patch	2009-04-02 21:35:51 UTC (rev 9361)
+++ packages/trunk/xmahjongg/debian/patches/04-gif-read-errors.patch	2009-04-03 11:51:31 UTC (rev 9362)
@@ -35,7 +35,7 @@
 -  if (s > grr->w) s = grr->w;
 +  int res;
 +  res = (s <= grr->w);
-+  if (res)
++  if (!res)
 +    s = grr->w;
    memcpy(p, grr->v, s);
    grr->w -= s, grr->v += s;




More information about the Pkg-games-commits mailing list