summaryrefslogtreecommitdiff
path: root/dir.c
diff options
context:
space:
mode:
authoreban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2001-03-20 14:50:43 +0000
committereban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2001-03-20 14:50:43 +0000
commitfa2f0f84de29af1e7bd6209f1580f3bb805928b2 (patch)
tree5872d29df610f402c7ce21654261d7861b0021b4 /dir.c
parentf1cdda48a96bc3b7ee866720e3697b2a7a47f10d (diff)
* win32/win32.c (win32_stat): UNC support.
* dir.c (extract_path): fix "./*" problem. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_6@1264 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'dir.c')
-rw-r--r--dir.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/dir.c b/dir.c
index a7945f8fc0..fb5d30d6ee 100644
--- a/dir.c
+++ b/dir.c
@@ -537,7 +537,7 @@ extract_path(p, pend)
memcpy(alloc, p, len);
if (len > 1 && pend[-1] == '/'
#if defined DOSISH
- && len > 2 && pend[-2] != ':'
+ && pend[-2] != ':'
#endif
) {
alloc[len-1] = 0;