summaryrefslogtreecommitdiff
path: root/file.c
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
commit49c720ff67cbca36cac3a6a4775c5522ea7d93b2 (patch)
tree0d418a451ba49b41610bc1758fe31d82d05d577b /file.c
parentb175c4be3c5eb5c381c86502b6a092837788b8bc (diff)
* file.c (rb_file_s_expand_path): should terminate.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2045 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'file.c')
-rw-r--r--file.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/file.c b/file.c
index b358c52..96ecb7e 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;
}