Avoid magic number in main.c

darcs-hash:20070908191743-ac50b-7185b9d59122cb9a090cacfbb43266822400e1ed.gz
This commit is contained in:
axel 2007-09-09 05:17:43 +10:00
parent c9fe154c01
commit 5a61ae3e0d

6
main.c
View File

@ -73,13 +73,15 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
static int read_init()
{
wchar_t cwd[4096];
#define CWD_SZ 8192
wchar_t cwd[CWD_SZ];
wchar_t *config_dir;
wchar_t *config_dir_escaped;
void *context;
string_buffer_t *eval_buff;
if( !wgetcwd( cwd, 4096 ) )
if( !wgetcwd( cwd, CWD_SZ ) )
{
wperror( L"wgetcwd" );
return 0;