From 49c720ff67cbca36cac3a6a4775c5522ea7d93b2 Mon Sep 17 00:00:00 2001 From: nobu Date: Mon, 4 Feb 2002 13:49:05 +0000 Subject: [PATCH] * 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 --- ChangeLog | 4 ++++ file.c | 1 + 2 files changed, 5 insertions(+) diff --git a/ChangeLog b/ChangeLog index 8a0ca19505..f82e5db26c 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 b358c526b4..96ecb7edf3 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; }