diff --git a/Frameworks/Sparkle/NSFileManager+Verification.m b/Frameworks/Sparkle/NSFileManager+Verification.m index c0ddb959e..ed8d6744f 100755 --- a/Frameworks/Sparkle/NSFileManager+Verification.m +++ b/Frameworks/Sparkle/NSFileManager+Verification.m @@ -121,7 +121,7 @@ EVP_PKEY* load_dsa_key(char *key) for (di = 0; di < 16; di++) sprintf(hexDigest + di*2, "%02x", digest[di]); - return [hash isEqualToString:[NSString stringWithCString:hexDigest]]; + return [hash isEqualToString:[NSString stringWithUTF8String:hexDigest]]; } - (BOOL)validatePath:(NSString *)path withEncodedDSASignature:(NSString *)encodedSignature diff --git a/Frameworks/Sparkle/SUAppcast.h b/Frameworks/Sparkle/SUAppcast.h index 209fe2061..542f7dc5e 100755 --- a/Frameworks/Sparkle/SUAppcast.h +++ b/Frameworks/Sparkle/SUAppcast.h @@ -23,5 +23,5 @@ @end @interface NSObject (SUAppcastDelegate) -- appcastDidFinishLoading:(SUAppcast *)appcast; +- (void)appcastDidFinishLoading:(SUAppcast *)appcast; @end \ No newline at end of file diff --git a/Frameworks/Sparkle/SUStatusChecker.m b/Frameworks/Sparkle/SUStatusChecker.m index 0bc341c55..d76bee5e4 100755 --- a/Frameworks/Sparkle/SUStatusChecker.m +++ b/Frameworks/Sparkle/SUStatusChecker.m @@ -67,7 +67,7 @@ } @catch (NSException *e) { - NSLog([e reason]); + NSLog(@"%@", [e reason]); [scDelegate statusChecker:self foundVersion:nil isNewVersion:NO]; } diff --git a/Frameworks/Sparkle/SUUnarchiver.m b/Frameworks/Sparkle/SUUnarchiver.m index a273ebb0a..514001bbd 100755 --- a/Frameworks/Sparkle/SUUnarchiver.m +++ b/Frameworks/Sparkle/SUUnarchiver.m @@ -27,7 +27,7 @@ if ((fp = fopen([archivePath UTF8String], "r"))) { setenv("DESTINATION", [[archivePath stringByDeletingLastPathComponent] UTF8String], 1); - if ((cmdFP = popen([command cString], "w"))) + if ((cmdFP = popen([command UTF8String], "w"))) { char buf[32*1024]; long len; diff --git a/Frameworks/Sparkle/SUUpdater.m b/Frameworks/Sparkle/SUUpdater.m index 5911fd4c1..0a92d6683 100755 --- a/Frameworks/Sparkle/SUUpdater.m +++ b/Frameworks/Sparkle/SUUpdater.m @@ -334,7 +334,7 @@ } @catch (NSException *e) { - NSLog([e reason]); + NSLog(@"%@", [e reason]); updateInProgress = NO; if (verbose) [self showUpdateErrorAlertWithInfo:SULocalizedString(@"An error occurred in retrieving update information. Please try again later.", nil)]; @@ -435,7 +435,7 @@ [unarchiver unarchivePath:downloadPath]; // asynchronous extraction! } @catch(NSException *e) { - NSLog([e reason]); + NSLog(@"%@", [e reason]); [self showUpdateErrorAlertWithInfo:SULocalizedString(@"An error occurred while extracting the archive. Please try again later.", nil)]; [self abandonUpdate]; } @@ -504,7 +504,7 @@ } @catch(NSException *e) { - NSLog([e reason]); + NSLog(@"%@", [e reason]); [self showUpdateErrorAlertWithInfo:SULocalizedString(@"An error occurred during installation. Please try again later.", nil)]; [self abandonUpdate]; } diff --git a/Frameworks/Sparkle/Sparkle.xcodeproj/project.pbxproj b/Frameworks/Sparkle/Sparkle.xcodeproj/project.pbxproj index 5471dcb27..f0a59d3da 100755 --- a/Frameworks/Sparkle/Sparkle.xcodeproj/project.pbxproj +++ b/Frameworks/Sparkle/Sparkle.xcodeproj/project.pbxproj @@ -663,7 +663,7 @@ GCC_WARN_UNUSED_VARIABLE = YES; MACOSX_DEPLOYMENT_TARGET = 10.4; PREBINDING = NO; - SDKROOT = /Developer/SDKs/MacOSX10.4u.sdk; + SDKROOT = /Developer/SDKs/MacOSX10.5.sdk; SYMROOT = ../../build; WARNING_CFLAGS = "-wall"; }; @@ -680,7 +680,7 @@ GCC_WARN_UNUSED_VARIABLE = YES; MACOSX_DEPLOYMENT_TARGET = 10.4; PREBINDING = NO; - SDKROOT = /Developer/SDKs/MacOSX10.4u.sdk; + SDKROOT = /Developer/SDKs/MacOSX10.5.sdk; SYMROOT = ../../build; WARNING_CFLAGS = "-wall"; };