summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-02-04 13:49:05 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-02-04 13:49:05 +0000
commit78fba7a2fac20a2cfcdf33f16788fef186b79a32 (patch)
tree0d418a451ba49b41610bc1758fe31d82d05d577b
parent22bd2c9dfd649fc5a05931da4ac8edbe77713a25 (diff)
* file.c (rb_file_s_expand_path): should terminate.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2045 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog4
-rw-r--r--file.c1
2 files changed, 5 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 8a0ca1950..f82e5db26 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+Mon Feb 4 22:44:58 2002 Nobuyoshi Nakada <nobu.nakada@nifty.ne.jp>
+
+ * file.c (rb_file_s_expand_path): should terminate.
+
Mon Feb 4 15:38:29 2002 Yukihiro Matsumoto <matz@ruby-lang.org>
* object.c (rb_class_real): should not follow ICLASS link
diff --git a/file.c b/file.c
index b358c526b..96ecb7edf 100644
--- a/file.c
+++ b/file.c
@@ -1554,6 +1554,7 @@ rb_file_s_expand_path(argc, argv)
#endif
if (tainted) OBJ_TAINT(result);
+ *p = '\0';
RSTRING(result)->len = p - buf;
return result;
}