mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
2000-03-13
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@638 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
976692f8ae
commit
31c55301e4
16 changed files with 198 additions and 78 deletions
4
file.c
4
file.c
|
|
@ -1957,9 +1957,9 @@ path_check_1(path)
|
|||
char buf[MAXPATHLEN+1];
|
||||
|
||||
#ifdef HAVE_GETCWD
|
||||
if (getcwd(path, sizeof(path)) == 0) return 0;
|
||||
if (getcwd(buf, MAXPATHLEN) == 0) return 0;
|
||||
#else
|
||||
if (getwd(path) == 0) return 0;
|
||||
if (getwd(buf) == 0) return 0;
|
||||
#endif
|
||||
strncat(buf, path, MAXPATHLEN);
|
||||
buf[MAXPATHLEN] = '\0';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue