Changeset 2507
- Timestamp:
- 03/28/05 12:01:28 (4 years ago)
- Files:
-
- trunk/Frameworks/frameworks.tar.gz (modified) (previous)
- trunk/MVSILCChatConnection.m (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/MVSILCChatConnection.m
r2496 r2507 60 60 MVSILCChatConnection *self = conn -> context; 61 61 if( msg ) { 62 NSString *msgString = [NSString stringWithUTF8String:msg]; 62 va_list list; 63 va_start( list, msg ); 64 65 NSString *tmp = [NSString stringWithUTF8String:msg]; 66 NSString *msgString = [[[NSString alloc] initWithFormat:tmp arguments:list] autorelease]; 67 va_end( list ); 68 63 69 NSNotification *rawMessageNote = [NSNotification notificationWithName:MVChatConnectionGotRawMessageNotification object:self userInfo:[NSDictionary dictionaryWithObjectsAndKeys:msgString, @"message", [NSNumber numberWithBool:NO], @"outbound", nil]]; 64 70 [[NSNotificationCenter defaultCenter] postNotificationOnMainThread:rawMessageNote]; … … 848 854 silc_cipher_register_default(); 849 855 silc_hmac_register_default(); 850 851 856 tooLate = YES; 852 857 } … … 864 869 865 870 memset( &_silcClientParams, 0, sizeof( _silcClientParams ) ); 871 _silcClientParams.dont_register_crypto_library = TRUE; 866 872 867 873 _silcClientLock = [[NSRecursiveLock alloc] init];
