summaryrefslogtreecommitdiff
path: root/io.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2001-12-21 09:23:28 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2001-12-21 09:23:28 +0000
commit63b6b9c43003cd5071748efca0a6d9b066834c5b (patch)
treef8118586a62a230db5e7a53998ec7c8775b78eac /io.c
parente93b8f1c892672a06bd6861859373e7bec49c3f6 (diff)
* time.c (time_plus): result should not be negative unless
NEGATIVE_TIME_T is defined. * time.c (time_new_internal): should check tv_sec overflow too. * time.c (time_timeval): should check time_t range when time is initialized from float. * time.c (time_plus): uses modf(3). * variable.c (rb_cvar_set): add frozen class/module check. * variable.c (rb_cvar_declare): add frozen class/module check. * re.c (match_to_a): should propagate taint. * re.c (rb_reg_s_quote): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1933 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'io.c')
-rw-r--r--io.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/io.c b/io.c
index 4c16918938..b99580f0a3 100644
--- a/io.c
+++ b/io.c
@@ -522,7 +522,7 @@ io_fread(ptr, len, f)
#endif
return len - n;
}
- rb_sys_fail(0);
+ return 0;
}
*ptr = '\0';
break;