diff options
Diffstat (limited to 'x11/lesstif/patches/patch-ac')
-rw-r--r-- | x11/lesstif/patches/patch-ac | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/x11/lesstif/patches/patch-ac b/x11/lesstif/patches/patch-ac new file mode 100644 index 00000000000..189bbd77946 --- /dev/null +++ b/x11/lesstif/patches/patch-ac @@ -0,0 +1,25 @@ +$NetBSD: patch-ac,v 1.16.2.1 2005/03/11 06:55:42 snj Exp $ + +--- lib/Xm-2.1/Xpmscan.c.orig 2004-11-18 22:00:59.000000000 +0100 ++++ lib/Xm-2.1/Xpmscan.c +@@ -672,8 +672,8 @@ GetImagePixels(image, width, height, pma + char *dst; + unsigned int *iptr; + char *data; +- unsigned int x, y, i; +- int bits, depth, ibu, ibpp, offset; ++ unsigned int x, y; ++ int bits, depth, ibu, ibpp, offset, i; + unsigned long lbt; + Pixel pixel, px; + +@@ -684,6 +684,9 @@ GetImagePixels(image, width, height, pma + ibpp = image->bits_per_pixel; + offset = image->xoffset; + ++ if (image->bitmap_unit < 0) ++ return (XpmNoMemory); ++ + if ((image->bits_per_pixel | image->depth) == 1) { + ibu = image->bitmap_unit; + for (y = 0; y < height; y++) |