]> git.sesse.net Git - vlc/commitdiff
macosx: fix potential string format attack
authorDavid Fuhrmann <david.fuhrmann@googlemail.com>
Sat, 24 Aug 2013 07:13:03 +0000 (09:13 +0200)
committerDavid Fuhrmann <david.fuhrmann@googlemail.com>
Sat, 24 Aug 2013 07:15:45 +0000 (09:15 +0200)
modules/gui/macosx/coredialogs.m

index fe6af2aa5583259ee46b947641e32e11004c2af7..55a37c34037102f8639ac44c34d57a6c6250d5c4 100644 (file)
@@ -111,7 +111,7 @@ static VLCCoreDialogProvider *_o_sharedInstance = nil;
     NSAlert *o_alert;
     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];
     i_returnValue = [o_alert runModal];