summaryrefslogtreecommitdiffstats
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
commit78fba7a2fac20a2cfcdf33f16788fef186b79a32 (patch)
tree0d418a451ba49b41610bc1758fe31d82d05d577b /file.c
parent22bd2c9dfd649fc5a05931da4ac8edbe77713a25 (diff)
downloadruby-78fba7a2fac20a2cfcdf33f16788fef186b79a32.tar.gz
ruby-78fba7a2fac20a2cfcdf33f16788fef186b79a32.tar.xz
ruby-78fba7a2fac20a2cfcdf33f16788fef186b79a32.zip
* 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
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 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;
}