diff options
author | Malcolm Beattie <mbeattie@sable.ox.ac.uk> | 1997-12-12 16:20:38 +0000 |
---|---|---|
committer | Malcolm Beattie <mbeattie@sable.ox.ac.uk> | 1997-12-12 16:20:38 +0000 |
commit | 4352c2672c688f561f692cdbaf9109f32e58a795 (patch) | |
tree | 02ab44a72315e24808d83723118524e7e1b9f545 | |
parent | 517904598beb3bc628df983865b7308755c62ecd (diff) | |
download | perl-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.c | 2 | ||||
-rw-r--r-- | pp_sys.c | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -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; @@ -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; |