use MAXPATHLEN for path buffer size
svn-id: r15319
This commit is contained in:
parent
7ced14e961
commit
ae73d1a4ee
3 changed files with 9 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue