mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-26 10:43:47 +08:00
Avoid magic number in main.c
darcs-hash:20070908191743-ac50b-7185b9d59122cb9a090cacfbb43266822400e1ed.gz
This commit is contained in:
parent
c9fe154c01
commit
5a61ae3e0d
6
main.c
6
main.c
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue
Block a user