mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* file.c (file_expand_path): applied a patch from Nobuhiro Tachino
in [ruby-dev:35948]. fix #491 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19201 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
7ae76a9e6b
commit
0771b987a4
2 changed files with 6 additions and 2 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
Sun Sep 7 06:31:51 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||||
|
|
||||||
|
* file.c (file_expand_path): applied a patch from Nobuhiro Tachino
|
||||||
|
in [ruby-dev:35948]. fix #491
|
||||||
|
|
||||||
Sun Sep 7 03:37:05 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
|
Sun Sep 7 03:37:05 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||||
|
|
||||||
* parse.y (f_block_optarg): allow default for block parameters as
|
* parse.y (f_block_optarg): allow default for block parameters as
|
||||||
|
|
3
file.c
3
file.c
|
@ -2728,8 +2728,7 @@ file_expand_path(VALUE fname, VALUE dname, int abs_mode, VALUE result)
|
||||||
if (p > buf && p[-1] == '/')
|
if (p > buf && p[-1] == '/')
|
||||||
--p;
|
--p;
|
||||||
else {
|
else {
|
||||||
++buflen;
|
BUFCHECK(bdiff + 1 >= buflen);
|
||||||
BUFCHECK(bdiff >= buflen);
|
|
||||||
*p = '/';
|
*p = '/';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue