mirror of
https://github.com/etlegacy/Update-Installer.git
synced 2025-04-12 01:00:48 +00:00
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:
parent
7864ad1829
commit
d44b0638bf
1 changed files with 1 additions and 5 deletions
|
@ -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
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue