PL_ErrorDialog: fix clang warning about format string not a literal

git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1450 af15c1b1-3010-417e-b628-4374ebc0bcbd
This commit is contained in:
ewasylishen 2017-07-28 20:50:18 +00:00
parent 8855838fa8
commit 0c8bd54371

View file

@ -72,6 +72,6 @@ void PL_ErrorDialog(const char *errorMsg)
#else #else
NSString* msg = [NSString stringWithCString:errorMsg encoding:NSASCIIStringEncoding]; NSString* msg = [NSString stringWithCString:errorMsg encoding:NSASCIIStringEncoding];
#endif #endif
NSRunCriticalAlertPanel (@"Quake Error", msg, @"OK", nil, nil); NSRunCriticalAlertPanel (@"Quake Error", @"%@", @"OK", nil, nil, msg);
} }