From 45185dee33e7d92e7230b00c1df8e2ed8bf1738a Mon Sep 17 00:00:00 2001 From: "C.W. Betts" Date: Sun, 6 Apr 2014 22:16:01 -0600 Subject: [PATCH] Fix a security warning on OS X. --- BBGE/Cocoa.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BBGE/Cocoa.mm b/BBGE/Cocoa.mm index 693a809..a65a0ea 100644 --- a/BBGE/Cocoa.mm +++ b/BBGE/Cocoa.mm @@ -14,7 +14,7 @@ void cocoaMessageBox(const std::string &title, const std::string &msg) @autoreleasepool { NSString *nstitle = @(title.c_str()); NSString *nsmsg = @(msg.c_str()); - NSRunAlertPanel(nstitle, nsmsg, nil, nil, nil); + NSRunAlertPanel(nstitle, @"%@", nil, nil, nil, nsmsg); } }