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 --- ChangeLog | 4 ++++ file.c | 1 + 2 files changed, 5 insertions(+) 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 + + * file.c (rb_file_s_expand_path): should terminate. + Mon Feb 4 15:38:29 2002 Yukihiro Matsumoto * 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; } -- cgit