[cairo-commit] src/cairo-xlib-surface.c
Chris Wilson
ickle at kemper.freedesktop.org
Wed Mar 31 00:23:19 PDT 2010
src/cairo-xlib-surface.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
New commits:
commit ce3ad6f41edf86ed6914f4d7f364111eba42ca65
Author: Chris Wilson <chris at chris-wilson.co.uk>
Date: Wed Mar 31 08:21:17 2010 +0100
xlib: Avoid multiple evaluations inside bswap_*() macro.
Fixes:
Fonts are not readable if remote display to a machine with different
endian.
https://bugzilla.mozilla.org/show_bug.cgi?id=526977
Reported-and-tested-by: Ginn Chen <Ginn.Chen at Sun.COM>
diff --git a/src/cairo-xlib-surface.c b/src/cairo-xlib-surface.c
index 4848fc4..c2aad95 100644
--- a/src/cairo-xlib-surface.c
+++ b/src/cairo-xlib-surface.c
@@ -4001,7 +4001,8 @@ _cairo_xlib_surface_add_glyph (Display *dpy,
n = new;
d = (uint32_t *) data;
do {
- *n++ = bswap_32 (*d++);
+ *n++ = bswap_32 (*d);
+ d++;
} while (--c);
data = (uint8_t *) new;
}
More information about the cairo-commit
mailing list