summaryrefslogtreecommitdiff
path: root/io.c
diff options
context:
space:
mode:
Diffstat (limited to 'io.c')
-rw-r--r--io.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/io.c b/io.c
index 674877c466..a148434fa0 100644
--- a/io.c
+++ b/io.c
@@ -2826,6 +2826,7 @@ rb_io_initialize(argc, argv, io)
int fd, flags;
char mbuf[4];
+ rb_secure(4);
rb_scan_args(argc, argv, "11", &fnum, &mode);
fd = NUM2INT(fnum);
if (argc == 2) {