summaryrefslogtreecommitdiff
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
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
-rw-r--r--pp_hot.c2
-rw-r--r--pp_sys.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/pp_hot.c b/pp_hot.c
index 5dc72eaf36..f4a69480b1 100644
--- a/pp_hot.c
+++ b/pp_hot.c
@@ -297,7 +297,7 @@ PP(pp_print)
gv = defoutgv;
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;
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;