mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-26 12:53:13 +00:00
Avoid magic number in main.c
darcs-hash:20070908191743-ac50b-7185b9d59122cb9a090cacfbb43266822400e1ed.gz
This commit is contained in:
parent
c9fe154c01
commit
5a61ae3e0d
1 changed files with 4 additions and 2 deletions
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()
|
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;
|
||||||
wchar_t *config_dir_escaped;
|
wchar_t *config_dir_escaped;
|
||||||
void *context;
|
void *context;
|
||||||
string_buffer_t *eval_buff;
|
string_buffer_t *eval_buff;
|
||||||
|
|
||||||
if( !wgetcwd( cwd, 4096 ) )
|
if( !wgetcwd( cwd, CWD_SZ ) )
|
||||||
{
|
{
|
||||||
wperror( L"wgetcwd" );
|
wperror( L"wgetcwd" );
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Reference in a new issue