Commit 3fc6c045 authored by David Fuhrmann's avatar David Fuhrmann

macosx: fix potential string format attack

parent 9f4b3c59
...@@ -111,7 +111,7 @@ static VLCCoreDialogProvider *_o_sharedInstance = nil; ...@@ -111,7 +111,7 @@ static VLCCoreDialogProvider *_o_sharedInstance = nil;
NSAlert *o_alert; NSAlert *o_alert;
NSInteger i_returnValue = 0; NSInteger i_returnValue = 0;
o_alert = [NSAlert alertWithMessageText: toNSStr(p_dialog->title) defaultButton: toNSStr(p_dialog->yes) alternateButton: toNSStr(p_dialog->no) otherButton: toNSStr(p_dialog->cancel) informativeTextWithFormat: toNSStr(p_dialog->message)]; o_alert = [NSAlert alertWithMessageText: toNSStr(p_dialog->title) defaultButton: toNSStr(p_dialog->yes) alternateButton: toNSStr(p_dialog->no) otherButton: toNSStr(p_dialog->cancel) informativeTextWithFormat:@"%@", toNSStr(p_dialog->message)];
[o_alert setAlertStyle: NSInformationalAlertStyle]; [o_alert setAlertStyle: NSInformationalAlertStyle];
i_returnValue = [o_alert runModal]; i_returnValue = [o_alert runModal];
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment