Package: bootsplash Version: 3.3-4 Severity: normal Tags: patch The gcc-4.0.dpatch needed to make it possible to compile fbmngplay with gcc-4.0 is errornous.
I have attached a working version of the patch to my mail. Jens --- Jens Lody
#! /bin/sh /usr/share/dpatch/dpatch-run
## gcc-4.0.dpatch by <[EMAIL PROTECTED]>
##
## All lines beginning with `## DP:' are a description of the patch.
## DP: No description.
@DPATCH@
diff -urNad bootsplash-3.1~/Utilities/mng.c bootsplash-3.1/Utilities/mng.c
--- bootsplash-3.3~/Utilities/mng.c 2006-02-05 20:42:22.000000000 -0500
+++ bootsplash-3.3/Utilities/mng.c 2007-01-20 18:09:57.000000000 +0100
@@ -228,7 +228,8 @@
a = a * mymng->alpha / 100;
switch (mymng->fbbpp) {
case 16:
- input = *((unsigned short *) background)++;
+ input = *((unsigned short *) background);
+ background += sizeof(*((unsigned short *) background));
br = (input >> mng->fbredo) << (8 - mng->fbredl);
bg = (input >> mng->fbgreeno) << (8 -
@@ -279,7 +280,8 @@
fbgreeno) | (b << mng->
fbblueo);
- *((unsigned short *) dest)++ = output;
+ *((unsigned short *) dest) = output;
+ dest += sizeof(*((unsigned short *) dest));
break;
case 24:
*dest++ = b;
signature.asc
Description: OpenPGP digital signature

