summaryrefslogtreecommitdiff
path: root/doio.c
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2014-07-21 10:50:54 -0400
committerJarkko Hietaniemi <jhi@iki.fi>2014-07-22 21:31:41 -0400
commit96e440d2eb546f4493feffce002f2ec8886f13a3 (patch)
tree1b0634ebad52cafa2d83e01574eb013945a069b9 /doio.c
parent6313e54401f5531a23184b7afaaf6bc7cd4a81ec (diff)
downloadperl-96e440d2eb546f4493feffce002f2ec8886f13a3.tar.gz
Use grok_atou instead of atoi.
Remaining atoi() uses include at least: ext/DynaLoader/dl_aix.xs, os2/os2.c, vms/vms.c
Diffstat (limited to 'doio.c')
-rw-r--r--doio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/doio.c b/doio.c
index 46d07966a6..a631eeb038 100644
--- a/doio.c
+++ b/doio.c
@@ -391,7 +391,7 @@ Perl_do_open6(pTHX_ GV *gv, const char *oname, STRLEN len,
num_svs = 0;
}
else if (isDIGIT(*type)) {
- wanted_fd = atoi(type);
+ wanted_fd = grok_atou(type, NULL);
}
else {
const IO* thatio;