ruby-changes:7680
From: matz <ko1@a...>
Date: Sun, 7 Sep 2008 07:15:34 +0900 (JST)
Subject: [ruby-changes:7680] Ruby:r19201 (trunk): * file.c (file_expand_path): applied a patch from Nobuhiro Tachino
matz 2008-09-07 07:15:18 +0900 (Sun, 07 Sep 2008) New Revision: 19201 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=19201 Log: * file.c (file_expand_path): applied a patch from Nobuhiro Tachino in [ruby-dev:35948]. fix #491 Modified files: trunk/ChangeLog trunk/file.c Index: ChangeLog =================================================================== --- ChangeLog (revision 19200) +++ ChangeLog (revision 19201) @@ -1,3 +1,8 @@ +Sun Sep 7 06:31:51 2008 Yukihiro Matsumoto <matz@r...> + + * 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@r...> * parse.y (f_block_optarg): allow default for block parameters as Index: file.c =================================================================== --- file.c (revision 19200) +++ file.c (revision 19201) @@ -2728,8 +2728,7 @@ if (p > buf && p[-1] == '/') --p; else { - ++buflen; - BUFCHECK(bdiff >= buflen); + BUFCHECK(bdiff + 1 >= buflen); *p = '/'; } -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/