netpbm/big-endian.patch
Petr Gajdos c901087b52 - version update to 10.88.1
* anytopnm: Fix unpredictable behavior when file name contains
    spaces.
    pnmquant: Fail if user specifies more than one of -meanpixel,
    -meancolor, and -center, rather than just pick one.
  * pnmremap: Don't output any part of the image if program fails
    because the maxval of input and map file do not match, in a
    case where matching maxval is required, i.e. the user specified
    -firstisdefault or -missingcolor.
  * ppmhist: sort secondarily by RGB with -sort=frequency, so
    output is repeatable.
  * pnmcolormap: Add -splitpix, -splitcol, -splitdim.
    Thanks Vladislav Zavjalov.
  * pbmtext: fix erroneous failure message with long input text.
  * jpeg2ktopam, pamtojpeg2k: fix negative array index.  Always
    broken (pamtojpeg2k was new in Netpbm 10.12 (November 2002)).
  * jpeg2ktopam, pamtojpeg2k: fix assertion failure.  Always
    broken (pamtojpeg2k was new in Netpbm 10.12 (November 2002)).
  * jpeg2ktopam: Fix memory leak after decoder failure.  Always
    broken (pamtojpeg2k was new in Netpbm 10.12 (November 2002)).
  * jpeg2ktopam: fix null pointer dereference.  Always broken
    (pamtojpeg2k was new in Netpbm 10.12 (November 2002)).
  * pnmtorle, rletopnm: fix wild pointer dereference when memory
    allocation fails.  Always broken (programs were added to
    Netpbm in Release 9.0 (April 2000).
  * pamsumm: Fix bug: with -mean and a conflicting option such as
    -sum, the program ignores one of the options.  It should fail.
    Always broken (pamsumm was new in Netpbm 10.21 (March 2004).
    pamfind: Add -machine .
  * Multiple: fix bug: when you specify the same option twice, you

OBS-URL: https://build.opensuse.org/package/show/graphics/netpbm?expand=0&rev=115
2019-12-20 12:52:51 +00:00

17 lines
550 B
Diff

Index: netpbm-10.88.1/converter/pbm/pbmtozinc.c
===================================================================
--- netpbm-10.88.1.orig/converter/pbm/pbmtozinc.c 2019-12-20 12:48:08.981181384 +0100
+++ netpbm-10.88.1/converter/pbm/pbmtozinc.c 2019-12-20 12:48:58.121462453 +0100
@@ -110,7 +110,10 @@ packer_putitem(Packer * const packe
++packerP->itemsperline;
- printf ("0x%02x%02x", hi, lo);
+ if (BYTE_ORDER == LITTLE_ENDIAN)
+ printf ("0x%02x%02x", hi, lo);
+ else
+ printf ("0x%02x%02x", lo, hi);
}