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
commita84d087d3cb142ae76b5e257948f6bd70d7873f7 (patch)
tree746da3082dfbaf897b1a71cf52a4ba29e716f7d3 /dir.c
parent1f904eed442f268d9f856aa25edbc7d7e906e6ae (diff)
* win32/win32.c (win32_stat): UNC support.
* dir.c (extract_path): fix "./*" problem. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@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 289cb4c2cd..560e2cd924 100644
--- a/dir.c
+++ b/dir.c
@@ -565,7 +565,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;