adium-1.4 2665:a47a2a4207e1: Use the network-order versions of t...

commits at adium.im commits at adium.im
Wed Oct 28 10:11:50 UTC 2009


details:	http://hg.adium.im/adium-1.4/rev/a47a2a4207e1
revision:	2665:a47a2a4207e1
author:		Peter Hosey <hg at boredzo.org>
date:		Wed Oct 28 03:09:37 2009 -0700

Use the network-order versions of the field length. Refs #8116.

These are two instances that I missed back in [6602dc74a08d].

diffs (18 lines):

diff -r bc1492a4a7c7 -r a47a2a4207e1 Plugins/Bonjour/libezv/Private Classes/AWEzvRendezvousData.m
--- a/Plugins/Bonjour/libezv/Private Classes/AWEzvRendezvousData.m	Wed Oct 28 18:27:54 2009 +1100
+++ b/Plugins/Bonjour/libezv/Private Classes/AWEzvRendezvousData.m	Wed Oct 28 03:09:37 2009 -0700
@@ -400,12 +400,12 @@
     key = @"slumming";
     fieldlen = [key length];
     fieldlenBE = htons(fieldlen);
-    [data appendBytes:&fieldlen length:2];
+    [data appendBytes:&fieldlenBE length:2];
     [data appendBytes:[key UTF8String] length:[key length]];
     value = @"1";
     fieldlen = [(NSData *)value length];
     fieldlenBE = htons(fieldlen);
-    [data appendBytes:&fieldlen length:2];
+    [data appendBytes:&fieldlenBE length:2];
     [data appendBytes:[value UTF8String] length:[(NSData *)value length]];
     
     /* create XML plist of data and convert to string */




More information about the commits mailing list