diff options
author | Fumitoshi UKAI <ukai@debian.or.jp> | 2001-11-27 16:55:46 +0000 |
---|---|---|
committer | Fumitoshi UKAI <ukai@debian.or.jp> | 2001-11-27 16:55:46 +0000 |
commit | c99c729780a23d75aefb9ff73511892f1969f32a (patch) | |
tree | 3a4ddec7d4e6d5d261b7dda8e514b46cae3cf109 /indep.c | |
parent | [w3m-dev 02572] _peekURL() bug (diff) | |
download | w3m-c99c729780a23d75aefb9ff73511892f1969f32a.tar.gz w3m-c99c729780a23d75aefb9ff73511892f1969f32a.zip |
[w3m-dev 02571]
From: Fumitoshi UKAI <ukai@debian.or.jp>
Diffstat (limited to '')
-rw-r--r-- | indep.c | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -1,4 +1,4 @@ -/* $Id: indep.c,v 1.11 2001/11/26 09:04:01 ukai Exp $ */ +/* $Id: indep.c,v 1.12 2001/11/27 16:55:46 ukai Exp $ */ #include "fm.h" #include <stdio.h> #include <pwd.h> @@ -48,8 +48,12 @@ currentdir() { char *path; #ifdef HAVE_GETCWD +#ifdef MAXPATHLEN path = NewAtom_N(char, MAXPATHLEN); getcwd(path, MAXPATHLEN); +#else + path = getcwd(NULL, 0); +#endif #else /* not HAVE_GETCWD */ #ifdef HAVE_GETWD path = NewAtom_N(char, 1024); |