diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 2000-08-07 14:45:14 +0000 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2000-08-07 14:45:14 +0000 |
commit | fdbb8cbde311423021cac075eca818cc6b8ae2e4 (patch) | |
tree | 650baa6e2cfc8d03703074d322dc6bd04da47843 | |
parent | 90034919d1dc964874dc273f4a7932d9c2d84416 (diff) | |
download | perl-fdbb8cbde311423021cac075eca818cc6b8ae2e4.tar.gz |
tr memory corruption fix from Simon Cozens.
p4raw-id: //depot/perl@6535
-rw-r--r-- | doop.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -93,8 +93,8 @@ S_do_trans_simple(pTHX_ SV *sv) } *d = '\0'; sv_setpvn(sv, (const char*)dstart, d - dstart); + Safefree(dstart); SvUTF8_on(sv); - SvLEN_set(sv, 2*len+1); SvSETMAGIC(sv); return matches; } |