diff -r 9fdd8dba529c -r 6f539dd9921c BLIP/BLIPProperties.m --- a/BLIP/BLIPProperties.m Sat May 24 17:25:06 2008 -0700 +++ b/BLIP/BLIPProperties.m Thu May 29 16:40:36 2008 -0700 @@ -56,7 +56,7 @@ // Read the length: const char *bytes = data.bytes; - size_t length = EndianU16_BtoN( *(UInt16*)bytes ) + sizeof(UInt16); + size_t length = NSSwapBigShortToHost( *(UInt16*)bytes ) + sizeof(UInt16); if( length > available ) { // Properties not complete yet. *usedLength = 0; @@ -307,7 +307,7 @@ NSUInteger length = data.length - sizeof(UInt16); if( length > 0xFFFF ) return nil; - *(UInt16*)[data mutableBytes] = EndianU16_NtoB((UInt16)length); + *(UInt16*)[data mutableBytes] = NSSwapHostShortToBig((UInt16)length); return data; }