adium 2794:ca3d8c8b4a3d: Use the network-order versions of the f...
commits at adium.im
commits at adium.im
Wed Oct 28 11:46:49 UTC 2009
details: http://hg.adium.im/adium/rev/ca3d8c8b4a3d
revision: 2794:ca3d8c8b4a3d
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 b9fd746d2a9a -r ca3d8c8b4a3d 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