1
0
Fork 0
mirror of https://github.com/AquariaOSE/Aquaria.git synced 2025-02-13 16:16:08 +00:00

Fix a security warning on OS X.

This commit is contained in:
C.W. Betts 2014-04-06 22:16:01 -06:00
parent 74c2c0fec2
commit 45185dee33

View file

@ -14,7 +14,7 @@ void cocoaMessageBox(const std::string &title, const std::string &msg)
@autoreleasepool { @autoreleasepool {
NSString *nstitle = @(title.c_str()); NSString *nstitle = @(title.c_str());
NSString *nsmsg = @(msg.c_str()); NSString *nsmsg = @(msg.c_str());
NSRunAlertPanel(nstitle, nsmsg, nil, nil, nil); NSRunAlertPanel(nstitle, @"%@", nil, nil, nil, nsmsg);
} }
} }