SHA256
1
0
forked from pool/cairo
Files
cairo/cairo-xlib-endianness.patch
Dominique Leuenberger c6cfeac335 Accepting request 239878 from home:fcrozat:branches:GNOME:Factory
- Add cairo-xlib-endianness.patch: fix crash when client and server
  have different endianness [bnc#882951, fdo#63461]

OBS-URL: https://build.opensuse.org/request/show/239878
OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/cairo?expand=0&rev=83
2014-07-10 11:50:24 +00:00

16 lines
378 B
Diff

--- cairo/src/cairo-xlib-render-compositor.c 2013-04-12 11:22:48.010384018 +0200
+++ cairo/src/cairo-xlib-render-compositor.c.new 2013-04-12 11:23:54.362925287 +0200
@@ -1318,10 +1318,10 @@
}
n = new;
d = (uint32_t *) data;
- do {
+ while (c--) {
*n++ = bswap_32 (*d);
d++;
- } while (--c);
+ }
data = (uint8_t *) new;
}
break;