summaryrefslogtreecommitdiff
path: root/pp_sys.c
diff options
context:
space:
mode:
authorMalcolm Beattie <mbeattie@sable.ox.ac.uk>1997-12-12 16:20:38 +0000
committerMalcolm Beattie <mbeattie@sable.ox.ac.uk>1997-12-12 16:20:38 +0000
commit4352c2672c688f561f692cdbaf9109f32e58a795 (patch)
tree02ab44a72315e24808d83723118524e7e1b9f545 /pp_sys.c
parent517904598beb3bc628df983865b7308755c62ecd (diff)
downloadperl-4352c2672c688f561f692cdbaf9109f32e58a795.tar.gz
pp_print and pp_prtf handling of tied file handles used EXTEND
instead of MEXTEND leading to core dumps. This fix needs propagating back to the maintenance branch. p4raw-id: //depot/perl@361
Diffstat (limited to 'pp_sys.c')
-rw-r--r--pp_sys.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pp_sys.c b/pp_sys.c
index 9dc62018df..42e8a9c19a 100644
--- a/pp_sys.c
+++ b/pp_sys.c
@@ -1147,7 +1147,7 @@ PP(pp_prtf)
if (SvMAGICAL(gv) && (mg = mg_find((SV*)gv, 'q'))) {
if (MARK == ORIGMARK) {
- EXTEND(SP, 1);
+ MEXTEND(SP, 1);
++MARK;
Move(MARK, MARK + 1, (SP - MARK) + 1, SV*);
++SP;