From 6f8dc14ce11389f54b2bab9ebc27db557cc035d3 Mon Sep 17 00:00:00 2001 From: Chris Moeller Date: Wed, 23 Oct 2013 16:25:58 -0700 Subject: [PATCH] Smarter actual fix for Sparkle --- Frameworks/Sparkle/SUUIBasedUpdateDriver.m | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Frameworks/Sparkle/SUUIBasedUpdateDriver.m b/Frameworks/Sparkle/SUUIBasedUpdateDriver.m index 59404a0e4..fffdfd404 100644 --- a/Frameworks/Sparkle/SUUIBasedUpdateDriver.m +++ b/Frameworks/Sparkle/SUUIBasedUpdateDriver.m @@ -199,11 +199,9 @@ } } -// XXX -#pragma GCC diagnostic ignored "-Wformat-security" - (void)abortUpdateWithError:(NSError *)error { - NSAlert *alert = [NSAlert alertWithMessageText:SULocalizedString(@"Update Error!", nil) defaultButton:SULocalizedString(@"Cancel Update", nil) alternateButton:nil otherButton:nil informativeTextWithFormat:[error localizedDescription]]; + NSAlert *alert = [NSAlert alertWithMessageText:SULocalizedString(@"Update Error!", nil) defaultButton:SULocalizedString(@"Cancel Update", nil) alternateButton:nil otherButton:nil informativeTextWithFormat:@"%@", [error localizedDescription]]; [self showModalAlert:alert]; [super abortUpdateWithError:error]; }