diff -r 9fdd8dba529c -r 980beba83fb7 BLIP/BLIPProperties.m --- a/BLIP/BLIPProperties.m Sat May 24 17:25:06 2008 -0700 +++ b/BLIP/BLIPProperties.m Fri May 30 13:54:38 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; }