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;


_______________________________________________
Pkg-games-commits mailing list
[email protected]
http://lists.alioth.debian.org/mailman/listinfo/pkg-games-commits

Reply via email to