summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2007-10-06 12:54:32 +0000
committerNicholas Clark <nick@ccl4.org>2007-10-06 12:54:32 +0000
commit53ce71d37f27a80bc42faba5c56ff7a3580a11f8 (patch)
tree616a856f36f757adf53d66a0548878e4ac69a673
parentf3a2811a943652950bfdb6408b09c32b4bf531d0 (diff)
downloadperl-53ce71d37f27a80bc42faba5c56ff7a3580a11f8.tar.gz
Use vnewSVpvf() rather than sv_vcatpvf() onto a newly created empty
string. p4raw-id: //depot/perl@32044
-rw-r--r--perlio.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/perlio.c b/perlio.c
index 7c0abfca41..2ea86aa87d 100644
--- a/perlio.c
+++ b/perlio.c
@@ -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);