Reverted getCString function call which may have been causing preferences problems.

git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@1010 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
This commit is contained in:
markgrebe 2006-02-28 02:17:26 +00:00
parent 419c35cf6a
commit 70649fff20
1 changed files with 2 additions and 2 deletions

View File

@ -7,7 +7,7 @@
TextEdit application. TextEdit application.
*/ */
/* $Id: Preferences.m,v 1.2 2006-01-15 02:12:09 markgrebe Exp $ */ /* $Id: Preferences.m,v 1.3 2006-02-28 02:17:26 markgrebe Exp $ */
#import <Cocoa/Cocoa.h> #import <Cocoa/Cocoa.h>
#import "Preferences.h" #import "Preferences.h"
@ -65,7 +65,7 @@ static Preferences *sharedInstance = nil;
if (theValue == nil) if (theValue == nil)
value[0] = 0; value[0] = 0;
else { else {
[theValue getCString:value maxLength:1023 encoding:NSASCIIStringEncoding]; [theValue getCString:value];
[theKey release]; [theKey release];
} }
} }