Index: update-mime-database.c =================================================================== RCS file: /cvs/mime/shared-mime-info/update-mime-database.c,v retrieving revision 1.30 diff -u -r1.30 update-mime-database.c --- update-mime-database.c 13 Oct 2003 09:43:38 -0000 1.30 +++ update-mime-database.c 1 Oct 2004 11:19:17 -0000 @@ -847,7 +847,7 @@ out_mask = g_new(char, bytes); for (b = 0; b < bytes; b++) { - int shift = (bytes - b - 1) * 8; + int shift = (big_endian ? (bytes - b - 1) : b) * 8; out_mask[b] = (mask >> shift) & 0xff; } }