UpdateDialogCocoa: fix compile error "Update-Installer/src/UpdateDialogCocoa.mm:54:33: error: format string is not a string literal (potentially insecure) [-Werror,-Wformat-security] informativeTextWithFormat: message];"

This commit is contained in:
Liam Staskawicz 2013-06-25 11:28:07 -07:00
parent 7864ad1829
commit d44b0638bf

View file

@ -42,18 +42,14 @@ class UpdateDialogPrivate
- (void) reportUpdateError: (id)arg
{
dialog->hadError = true;
NSMutableString* message = [[NSMutableString alloc] init];
[message appendString:@"There was a problem installing the update:\n\n"];
[message appendString:arg];
NSAlert* alert = [NSAlert
alertWithMessageText: @"Update Problem"
defaultButton: nil
alternateButton: nil
otherButton: nil
informativeTextWithFormat: message];
informativeTextWithFormat: @"There was a problem installing the update:\n\n%@", arg];
[alert runModal];
[message release];
}
- (void) reportUpdateProgress: (id)arg
{