aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--graphics/xv/files/patch-xvimage.c24
-rw-r--r--net-p2p/ed2k/files/patch-ed2k.c2
2 files changed, 25 insertions, 1 deletions
diff --git a/graphics/xv/files/patch-xvimage.c b/graphics/xv/files/patch-xvimage.c
new file mode 100644
index 000000000000..32bb035156f3
--- /dev/null
+++ b/graphics/xv/files/patch-xvimage.c
@@ -0,0 +1,24 @@
+--- xvimage.c.orig Sat Oct 7 21:38:26 2006
++++ xvimage.c Sat Oct 7 21:44:00 2006
+@@ -2003,8 +2003,8 @@
+ if (dithpic) xcol = ((*pp) ? white : black) & 0xffff;
+ else xcol = xcolors[*pp] & 0xffff;
+
+- *((unsigned char *)ip)++ = (xcol>>8) & 0xff;
+- *((unsigned char *)ip)++ = (xcol) & 0xff;
++ *(((unsigned char *)ip)++) = (xcol>>8) & 0xff;
++ *(((unsigned char *)ip)++) = (xcol) & 0xff;
+ }
+ }
+ else { /* LSBFirst */
+@@ -2014,8 +2014,8 @@
+ if (dithpic) xcol = ((*pp) ? white : black) & 0xffff;
+ else xcol = xcolors[*pp];
+
+- *((unsigned char *)ip)++ = (xcol) & 0xff;
+- *((unsigned char *)ip)++ = (xcol>>8) & 0xff;
++ *(((unsigned char *)ip)++) = (xcol) & 0xff;
++ *(((unsigned char *)ip)++) = (xcol>>8) & 0xff;
+ }
+ }
+ }
diff --git a/net-p2p/ed2k/files/patch-ed2k.c b/net-p2p/ed2k/files/patch-ed2k.c
index 3c6191f5b925..ce2a6d085069 100644
--- a/net-p2p/ed2k/files/patch-ed2k.c
+++ b/net-p2p/ed2k/files/patch-ed2k.c
@@ -54,7 +54,7 @@
int dsize = sizeof(md4_t);
while (dsize--) {
- unsigned char d = *((unsigned char *)digest)++;
-+ unsigned char d = (*((unsigned char *)digest))++;
++ unsigned char d = *(((unsigned char *)digest)++);
*(str++) = hdigit(d >> 4 );
*(str++) = hdigit(d & 0xf);
}