[Plib-cvs] plib/src/pui puFileSelector.cxx,1.21,1.22
Brought to you by:
sjbaker
From: Sebastian U. <ud...@us...> - 2002-05-29 12:58:34
|
Update of /cvsroot/plib/plib/src/pui In directory usw-pr-cvs1:/tmp/cvs-serv26997 Modified Files: puFileSelector.cxx Log Message: Fixes by Norman Vine Index: puFileSelector.cxx =================================================================== RCS file: /cvsroot/plib/plib/src/pui/puFileSelector.cxx,v retrieving revision 1.21 retrieving revision 1.22 diff -u -d -r1.21 -r1.22 --- puFileSelector.cxx 24 Apr 2002 00:25:52 -0000 1.21 +++ puFileSelector.cxx 29 May 2002 12:58:28 -0000 1.22 @@ -343,7 +343,8 @@ } else { - if ( ulGetCWD ( startDir, PUSTRING_MAX ) == NULL ) + startDir = new char [ UL_NAME_MAX + 1 ] ; + if ( ulGetCWD ( startDir, UL_NAME_MAX + 1 ) == NULL ) { ulSetError ( UL_WARNING, "PUI: puFileSelector - can't find current directory" ) ; |