summaryrefslogtreecommitdiff
path: root/pp_sys.c
diff options
context:
space:
mode:
authorVincent Pit <vince@profvince.com>2009-02-07 15:17:04 +0100
committerVincent Pit <vince@profvince.com>2009-02-07 15:36:30 +0100
commit9b6474b65b5960c01431344dff68b19ec547ad06 (patch)
treea4e3ba835bb99886c2ee2cc9cc958c8f0058a2bd /pp_sys.c
parentcd477a63b79827394e51e6698e1a59ee11fa4eeb (diff)
downloadperl-9b6474b65b5960c01431344dff68b19ec547ad06.tar.gz
pp_send() doesn't need to allocate 1000 stack slots for syswrite $tiedhandle, $buf
Diffstat (limited to 'pp_sys.c')
-rw-r--r--pp_sys.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/pp_sys.c b/pp_sys.c
index 0d2c970ff1..08c1f837c5 100644
--- a/pp_sys.c
+++ b/pp_sys.c
@@ -1818,9 +1818,8 @@ PP(pp_send)
SV *sv;
if (MARK == SP - 1) {
- EXTEND(SP, 1000);
- sv = sv_2mortal(newSViv(sv_len(*SP)));
- PUSHs(sv);
+ sv = *SP;
+ mXPUSHi(sv_len(sv));
PUTBACK;
}