From 379a420a7a5d720cdc4094513a70e59a4c98af93 Mon Sep 17 00:00:00 2001 From: markgrebe Date: Thu, 9 Mar 2006 03:16:30 +0000 Subject: [PATCH] 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 --- stella/src/macosx/SettingsMACOSX.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stella/src/macosx/SettingsMACOSX.cxx b/stella/src/macosx/SettingsMACOSX.cxx index 4088e4f1c..6bfa3b187 100644 --- a/stella/src/macosx/SettingsMACOSX.cxx +++ b/stella/src/macosx/SettingsMACOSX.cxx @@ -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 @@ -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();