diff options
author | Nicholas Clark <nick@ccl4.org> | 2007-10-06 12:54:32 +0000 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2007-10-06 12:54:32 +0000 |
commit | 53ce71d37f27a80bc42faba5c56ff7a3580a11f8 (patch) | |
tree | 616a856f36f757adf53d66a0548878e4ac69a673 /perlio.c | |
parent | f3a2811a943652950bfdb6408b09c32b4bf531d0 (diff) | |
download | perl-53ce71d37f27a80bc42faba5c56ff7a3580a11f8.tar.gz |
Use vnewSVpvf() rather than sv_vcatpvf() onto a newly created empty
string.
p4raw-id: //depot/perl@32044
Diffstat (limited to 'perlio.c')
-rw-r--r-- | perlio.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -5035,16 +5035,16 @@ int PerlIO_vprintf(PerlIO *f, const char *fmt, va_list ap) { dTHX; - SV * const sv = newSVpvs(""); + SV * sv; const char *s; STRLEN len; SSize_t wrote; #ifdef NEED_VA_COPY va_list apc; Perl_va_copy(ap, apc); - sv_vcatpvf(sv, fmt, &apc); + sv = vnewSVpvf(fmt, &apc); #else - sv_vcatpvf(sv, fmt, &ap); + sv = vnewSVpvf(fmt, &ap); #endif s = SvPV_const(sv, len); wrote = PerlIO_write(f, s, len); |