projects
/
p5sagit/p5-mst-13.2.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(parent:
9003491
)
tr memory corruption fix from Simon Cozens.
Jarkko Hietaniemi [Mon, 7 Aug 2000 14:45:14 +0000 (14:45 +0000)]
p4raw-id: //depot/perl@6535
doop.c
patch
|
blob
|
blame
|
history
diff --git
a/doop.c
b/doop.c
index
ba8a7e5
..
39d050b
100644
(file)
--- a/
doop.c
+++ b/
doop.c
@@
-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;
}