From 78fba7a2fac20a2cfcdf33f16788fef186b79a32 Mon Sep 17 00:00:00 2001 From: nobu Date: Mon, 4 Feb 2002 13:49:05 +0000 Subject: * 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 --- file.c | 1 + 1 file changed, 1 insertion(+) (limited to 'file.c') 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; } -- cgit