From 35f851bcfe7e42ddf1b44606d2df4d4be9de9976 Mon Sep 17 00:00:00 2001 From: matz Date: Tue, 18 Dec 2001 08:47:06 +0000 Subject: * string.c (rb_str_replace): swap arguments of OBJ_INFECT. * eval.c (rb_thread_schedule): should not select a thread which is not yet initialized. * time.c (time_plus): wrong boundary check. * time.c (time_minus): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1918 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- file.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'file.c') diff --git a/file.c b/file.c index 17bbdb1585..424e753a3f 100644 --- a/file.c +++ b/file.c @@ -1908,7 +1908,7 @@ rb_stat_init(obj, fname) { struct stat st, *nst; - Check_SafeStr(fname); + SafeStringValue(fname); if (stat(RSTRING(fname)->ptr, &st) == -1) { rb_sys_fail(RSTRING(fname)->ptr); -- cgit v1.2.3