From a4905ffaa0185235cc638098dae277f8abc0a56c Mon Sep 17 00:00:00 2001 From: "SND\\MaddTheSane_cp" Date: Mon, 17 Sep 2012 01:15:40 +0000 Subject: Updating projects to build on Xcode 4.4 Added OpenGL shader support to the Mac software renderer. git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@79892 e17a0e51-4ae3-4d35-97c3-1a29b211df97 --- macosx/ConfigurationController.m | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'macosx/ConfigurationController.m') diff --git a/macosx/ConfigurationController.m b/macosx/ConfigurationController.m index 513a0489..1820b8e9 100644 --- a/macosx/ConfigurationController.m +++ b/macosx/ConfigurationController.m @@ -15,10 +15,10 @@ NSString *memChangeNotifier = @"PcsxrMemoryCardDidChangeNotifier"; { if (theCard == 1) { [[NSUserDefaults standardUserDefaults] setObject:theFile forKey:@"Mcd1"]; - strcpy(Config.Mcd1, [theFile fileSystemRepresentation] ); + strlcpy(Config.Mcd1, [theFile fileSystemRepresentation], MAXPATHLEN ); } else { [[NSUserDefaults standardUserDefaults] setObject:theFile forKey:@"Mcd2"]; - strcpy(Config.Mcd2, [theFile fileSystemRepresentation] ); + strlcpy(Config.Mcd2, [theFile fileSystemRepresentation], MAXPATHLEN ); } [[NSNotificationCenter defaultCenter] postNotificationName:memChangeNotifier object:nil]; @@ -222,6 +222,7 @@ NSString *memChangeNotifier = @"PcsxrMemoryCardDidChangeNotifier"; [[NSNotificationCenter defaultCenter] removeObserver:self]; [checkBoxDefaults release]; if (memCardEdit) { + [memCardEdit close]; [memCardEdit release]; } [super dealloc]; -- cgit v1.2.3