diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-05-17 03:36:48 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-05-17 03:36:48 +0000 |
commit | a49cab4938aacf715e0bf07f1c4aa466ed06ff91 (patch) | |
tree | f0035539694dd40127a334119bb3bcc2b3599c0c | |
parent | 02fe6f76f4663c70abdc2b8299b88d256033249b (diff) |
* file.c (file_expand_path): rb_str_set_len is not backported.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_5@16443 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | file.c | 4 | ||||
-rw-r--r-- | version.h | 2 |
3 files changed, 7 insertions, 3 deletions
@@ -1,3 +1,7 @@ +Sat May 17 12:36:46 2008 Nobuyoshi Nakada <nobu@ruby-lang.org> + + * file.c (file_expand_path): rb_str_set_len is not backported. + Sat May 17 12:15:48 2008 Nobuyoshi Nakada <nobu@ruby-lang.org> * file.c (file_expand_path): support for alternative data stream @@ -2727,8 +2727,9 @@ file_expand_path(fname, dname, result) if (p == skiproot(buf) - 1) p++; buflen = p - buf; -#if USE_NTFS + RSTRING(result)->len = buflen; *p = '\0'; +#if USE_NTFS if (!strpbrk(b = buf, "*?")) { size_t len; WIN32_FIND_DATA wfd; @@ -2779,7 +2780,6 @@ file_expand_path(fname, dname, result) #endif if (tainted) OBJ_TAINT(result); - rb_str_set_len(result, buflen); return result; } @@ -2,7 +2,7 @@ #define RUBY_RELEASE_DATE "2008-05-17" #define RUBY_VERSION_CODE 185 #define RUBY_RELEASE_CODE 20080517 -#define RUBY_PATCHLEVEL 115 +#define RUBY_PATCHLEVEL 116 #define RUBY_VERSION_MAJOR 1 #define RUBY_VERSION_MINOR 8 |