Fix array overflow that was occuring in loadConfig(). This showed up in the new Xcode 2.2 build, but it only crashed in Development mode, not Deployment, most likely due to the optimization.

git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@1026 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
This commit is contained in:
markgrebe 2006-03-09 03:16:30 +00:00
parent 5b4d441d36
commit 379a420a7a
1 changed files with 2 additions and 2 deletions

View File

@ -13,7 +13,7 @@
// See the file "license" for information on usage and redistribution of
// this file, and for a DISCLAIMER OF ALL WARRANTIES.
//
// $Id: SettingsMACOSX.cxx,v 1.10 2006-03-06 15:42:27 stephena Exp $
// $Id: SettingsMACOSX.cxx,v 1.11 2006-03-09 03:16:30 markgrebe Exp $
//============================================================================
#include <cassert>
@ -54,7 +54,7 @@ SettingsMACOSX::~SettingsMACOSX()
void SettingsMACOSX::loadConfig()
{
string key, value;
char cvalue[1024];
char cvalue[2048];
// Write out each of the key and value pairs
const SettingsArray& settings = getInternalSettings();