diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2000-03-13 07:18:45 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2000-03-13 07:18:45 +0000 |
commit | 31c55301e4c3c84803186d28d2764363b457532f (patch) | |
tree | 5f3558168cba03413c22fb5a9b3a7d64e0519df2 /file.c | |
parent | 976692f8ae8377af944f09177c8e79cb94809fe9 (diff) |
2000-03-13
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@638 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'file.c')
-rw-r--r-- | file.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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'; |