From 04153d98f41acee4dd8c012b71404c85525f054a Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Tue, 21 Jul 2009 22:55:49 -0400 Subject: [PATCH] Switch to using -[NSString stringWithUTF8String:] in SocketWrapper. --- Source/SocketWrapper.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/SocketWrapper.m b/Source/SocketWrapper.m index 07b21ee..38cffc3 100644 --- a/Source/SocketWrapper.m +++ b/Source/SocketWrapper.m @@ -193,7 +193,7 @@ [self error:@"Socket closed or could not be read"]; return nil; } - NSString* temp = [NSString stringWithCString:buffer encoding:NSUTF8StringEncoding]; + NSString* temp = [NSString stringWithUTF8String:buffer]; [string appendString:temp]; received += [temp length]; } -- 2.43.5