diff options
author | Nicholas Clark <nick@ccl4.org> | 2007-10-20 16:16:56 +0000 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2007-10-20 16:16:56 +0000 |
commit | 768195fccafdf76c2cb07de2ca1fea7b2bf8972e (patch) | |
tree | 622c9d3499fd1e77146a98cc1c02a32809ceff9e /doio.c | |
parent | b9ee0594f2ab168a84a665a336cc190363728aef (diff) | |
download | perl-768195fccafdf76c2cb07de2ca1fea7b2bf8972e.tar.gz |
In Perl_do_openn() we know the length of oname, so use it when creating
an SV.
p4raw-id: //depot/perl@32151
Diffstat (limited to 'doio.c')
-rw-r--r-- | doio.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -176,7 +176,7 @@ Perl_do_openn(pTHX_ GV *gv, register const char *oname, I32 len, int as_raw, IoTYPE(io) = PerlIO_intmode2str(rawmode, &mode[ix], &writing); - namesv = sv_2mortal(newSVpv(oname,0)); + namesv = sv_2mortal(newSVpvn(oname,len)); num_svs = 1; svp = &namesv; type = NULL; |