1.1 --- a/BLIP/BLIPProperties.m Sat May 24 17:25:06 2008 -0700
1.2 +++ b/BLIP/BLIPProperties.m Fri May 30 13:54:38 2008 -0700
1.3 @@ -56,7 +56,7 @@
1.4
1.5 // Read the length:
1.6 const char *bytes = data.bytes;
1.7 - size_t length = EndianU16_BtoN( *(UInt16*)bytes ) + sizeof(UInt16);
1.8 + size_t length = NSSwapBigShortToHost( *(UInt16*)bytes ) + sizeof(UInt16);
1.9 if( length > available ) {
1.10 // Properties not complete yet.
1.11 *usedLength = 0;
1.12 @@ -307,7 +307,7 @@
1.13 NSUInteger length = data.length - sizeof(UInt16);
1.14 if( length > 0xFFFF )
1.15 return nil;
1.16 - *(UInt16*)[data mutableBytes] = EndianU16_NtoB((UInt16)length);
1.17 + *(UInt16*)[data mutableBytes] = NSSwapHostShortToBig((UInt16)length);
1.18 return data;
1.19 }
1.20