File gd-2.0.36.RC1-ppc64.patch of Package gd

Index: gd.c
===================================================================
--- gd.c.orig	2007-11-27 09:30:34.000000000 +0100
+++ gd.c	2008-11-12 16:13:25.000000000 +0100
@@ -1895,7 +1895,7 @@ struct seg {int y, xl, xr, dy;};
 /* max depth of stack */
 #define FILL_MAX 1200000
 #define FILL_PUSH(Y, XL, XR, DY) \
-    if (sp<stack+FILL_MAX*10 && Y+(DY)>=0 && Y+(DY)<wy2) \
+    if (sp<stack+FILL_MAX && Y+(DY)>=0 && Y+(DY)<wy2) \
     {sp->y = Y; sp->xl = XL; sp->xr = XR; sp->dy = DY; sp++;}
 
 #define FILL_POP(Y, XL, XR, DY) \
openSUSE Build Service is sponsored by