diff -r dd29535bac5f gfx/thebes/gfxPlatformGtk.cpp --- a/gfx/thebes/gfxPlatformGtk.cpp Sat May 05 20:22:53 2012 -0700 +++ b/gfx/thebes/gfxPlatformGtk.cpp Wed May 09 11:42:21 2012 +0200 @@ -538,16 +538,10 @@ if (iccAtom) { // read once to get size, once for the data if (Success == XGetWindowProperty(dpy, root, iccAtom, - 0, 0 /* length */, + 0, INT_MAX /* length */, False, AnyPropertyType, &retAtom, &retFormat, &retLength, &retAfter, &retProperty)) { - XGetWindowProperty(dpy, root, iccAtom, - 0, retLength, - False, AnyPropertyType, - &retAtom, &retFormat, &retLength, - &retAfter, &retProperty); - qcms_profile* profile = NULL; if (retLength > 0)