[Scummvm-cvs-logs] CVS: scummvm/gui options.cpp,1.56,1.57
Jonathan Gray
khalek at users.sourceforge.net
Mon Sep 27 21:23:46 CEST 2004
Update of /cvsroot/scummvm/scummvm/gui
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29703/gui
Modified Files:
options.cpp
Log Message:
use MAXPATHLEN for path buffer size
Index: options.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/gui/options.cpp,v
retrieving revision 1.56
retrieving revision 1.57
diff -u -d -r1.56 -r1.57
--- options.cpp 6 Aug 2004 23:02:13 -0000 1.56
+++ options.cpp 28 Sep 2004 04:14:57 -0000 1.57
@@ -427,7 +427,10 @@
_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);
}
More information about the Scummvm-git-logs
mailing list