diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-03-13 22:23:02 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-03-13 22:23:02 +0000 |
commit | 5cff0face35fe88affd4338a2ed7845a60509563 (patch) | |
tree | 67190440da6fa90f99f2e3b4e8e7b25fe3557191 | |
parent | fa37ab769fa4adac50959b514793e8d1a39a09ce (diff) | |
download | ruby-5cff0face35fe88affd4338a2ed7845a60509563.tar.gz |
* file.c (EXPAND_PATH_BUFFER): make it back to usascii, to prevent
infinite loop on some platform. [ruby-dev:40629]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26913 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | file.c | 2 |
2 files changed, 6 insertions, 1 deletions
@@ -1,3 +1,8 @@ +Sun Mar 14 07:20:17 2010 Yukihiro Matsumoto <matz@ruby-lang.org> + + * file.c (EXPAND_PATH_BUFFER): make it back to usascii, to prevent + infinite loop on some platform. [ruby-dev:40629] + Sun Mar 14 02:40:38 2010 Tanaka Akira <akr@fsij.org> * tool/transcode-tblgen.rb: reject ambiguous mapping. @@ -2998,7 +2998,7 @@ file_expand_path(VALUE fname, VALUE dname, int abs_mode, VALUE result) return result; } -#define EXPAND_PATH_BUFFER() rb_filesystem_str_new(0, MAXPATHLEN + 2) +#define EXPAND_PATH_BUFFER() rb_usascii_str_new(0, MAXPATHLEN + 2) #define check_expand_path_args(fname, dname) \ ((fname = rb_get_path(fname)), \ |