summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-05-17 03:36:48 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-05-17 03:36:48 +0000
commita49cab4938aacf715e0bf07f1c4aa466ed06ff91 (patch)
treef0035539694dd40127a334119bb3bcc2b3599c0c
parent02fe6f76f4663c70abdc2b8299b88d256033249b (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--ChangeLog4
-rw-r--r--file.c4
-rw-r--r--version.h2
3 files changed, 7 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index 24610b4f1c..f8e0ee0091 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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
diff --git a/file.c b/file.c
index f8e95e20e7..679a228c3e 100644
--- a/file.c
+++ b/file.c
@@ -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;
}
diff --git a/version.h b/version.h
index cf8d8bd9a3..2739da573d 100644
--- a/version.h
+++ b/version.h
@@ -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