mirror of https://github.com/stella-emu/stella.git
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:
parent
5b4d441d36
commit
379a420a7a
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue