use MAXPATHLEN for path buffer size

svn-id: r15319
This commit is contained in:
Jonathan Gray 2004-09-28 04:14:57 +00:00
parent 7ced14e961
commit ae73d1a4ee
3 changed files with 9 additions and 1 deletions

View file

@ -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);
}