(OSX) apple_run_core - get rid of unneeded strlcpy call

This commit is contained in:
twinaphex 2013-11-22 16:16:07 +01:00
parent a1321689ac
commit d45bf7db1f

View File

@ -40,7 +40,6 @@ void apple_run_core(NSString* core, const char* file)
{ {
char basedir[256]; char basedir[256];
fill_pathname_basedir(basedir, file, sizeof(basedir)); fill_pathname_basedir(basedir, file, sizeof(basedir));
strlcpy(basedir, file, sizeof(basedir));
if (file && access(basedir, R_OK | W_OK | X_OK)) if (file && access(basedir, R_OK | W_OK | X_OK))
apple_display_alert(@"The directory containing the selected file has limited permissions. This may " apple_display_alert(@"The directory containing the selected file has limited permissions. This may "
"prevent zipped games from loading, and will cause some cores to not function.", 0); "prevent zipped games from loading, and will cause some cores to not function.", 0);