summaryrefslogtreecommitdiff
path: root/file.c
diff options
context:
space:
mode:
Diffstat (limited to 'file.c')
-rw-r--r--file.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/file.c b/file.c
index 76076e47a2..2241efa19d 100644
--- a/file.c
+++ b/file.c
@@ -1438,6 +1438,12 @@ rb_file_s_expand_path(argc, argv)
}
b = ++s;
}
+ else {
+ p = CharNext(p);
+ *p++ = '.';
+ *p = '.';
+ if (p >= bend) goto toolong;
+ }
break;
case '/':
#if defined DOSISH