summaryrefslogtreecommitdiff
path: root/lesstif/lesstif-0.95.0-libxpm.patch
blob: 8cda5c892c119d034409dc2f4c5a9c14787f4b15 (plain)
    1 --- lib/Xm-2.1/Xpmscan.c.orig	2005-03-02 17:00:16.415070960 +0100
    2 +++ lib/Xm-2.1/Xpmscan.c	2005-03-02 17:01:38.949709879 +0100
    3 @@ -672,8 +672,8 @@
    4      char *dst;
    5      unsigned int *iptr;
    6      char *data;
    7 -    unsigned int x, y, i;
    8 -    int bits, depth, ibu, ibpp, offset;
    9 +    unsigned int x, y;
   10 +    int bits, depth, ibu, ibpp, offset, i;
   11      unsigned long lbt;
   12      Pixel pixel, px;
   13  
   14 @@ -684,6 +684,9 @@
   15      ibpp = image->bits_per_pixel;
   16      offset = image->xoffset;
   17  
   18 +    if (image->bitmap_unit < 0)
   19 +	    return (XpmNoMemory);
   20 +
   21      if ((image->bits_per_pixel | image->depth) == 1) {
   22  	ibu = image->bitmap_unit;
   23  	for (y = 0; y < height; y++)
   24 --- lib/Xm-2.1/Xpmcreate.c.orig	2005-03-02 17:02:00.626412844 +0100
   25 +++ lib/Xm-2.1/Xpmcreate.c	2005-03-02 17:02:35.183562480 +0100
   26 @@ -1265,10 +1265,10 @@
   27      register char *src;
   28      register char *dst;
   29      register unsigned int *iptr;
   30 -    register unsigned int x, y, i;
   31 +    register unsigned int x, y;
   32      register char *data;
   33      Pixel pixel, px;
   34 -    int nbytes, depth, ibu, ibpp;
   35 +    int nbytes, depth, ibu, ibpp, i;
   36  
   37      data = image->data;
   38      iptr = pixelindex;

Generated by cgit