diff options
author | Jonathan Gray | 2004-09-28 04:14:57 +0000 |
---|---|---|
committer | Jonathan Gray | 2004-09-28 04:14:57 +0000 |
commit | ae73d1a4ee373f8c94291dc79f090c991dc021e4 (patch) | |
tree | 586a4882248543f93099d0a8144caa4122a56d4e /gui | |
parent | 7ced14e961d9b79c3efdb6bb6f88942bd2755357 (diff) | |
download | scummvm-rg350-ae73d1a4ee373f8c94291dc79f090c991dc021e4.tar.gz scummvm-rg350-ae73d1a4ee373f8c94291dc79f090c991dc021e4.tar.bz2 scummvm-rg350-ae73d1a4ee373f8c94291dc79f090c991dc021e4.zip |
use MAXPATHLEN for path buffer size
svn-id: r15319
Diffstat (limited to 'gui')
-rw-r--r-- | gui/options.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gui/options.cpp b/gui/options.cpp index f26ba209c8..6cd4b8d461 100644 --- a/gui/options.cpp +++ b/gui/options.cpp @@ -427,7 +427,10 @@ void GlobalOptionsDialog::open() { _savePath->setLabel(dir); } else { // Default to the current directory... - char buf[256]; +#if !(defined(MAXPATHLEN)) +#define MAXPATHLEN 1024 +#endif + char buf[MAXPATHLEN]; getcwd(buf, sizeof(buf)); _savePath->setLabel(buf); } |