summaryrefslogtreecommitdiff
path: root/dump.c
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2007-10-06 12:23:15 +0000
committerNicholas Clark <nick@ccl4.org>2007-10-06 12:23:15 +0000
commitf3a2811a943652950bfdb6408b09c32b4bf531d0 (patch)
tree4c1a0f267bae872b1fa8b30e7bf0e230bfbfef3b /dump.c
parent550e2ce03d201c2e16d6755c5e8b7feb3b2afe06 (diff)
downloadperl-f3a2811a943652950bfdb6408b09c32b4bf531d0.tar.gz
Avoid using *pvf functions when the format string is a fixed string.
p4raw-id: //depot/perl@32043
Diffstat (limited to 'dump.c')
-rw-r--r--dump.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/dump.c b/dump.c
index 0d7fd34680..1ad3e77b9b 100644
--- a/dump.c
+++ b/dump.c
@@ -2234,16 +2234,16 @@ Perl_sv_catxmlpvn(pTHX_ SV *dsv, const char *pv, STRLEN len, int utf8)
Perl_sv_catpvf(aTHX_ dsv, "STUPIDXML(#x%X)", c);
break;
case '<':
- Perl_sv_catpvf(aTHX_ dsv, "&lt;");
+ sv_catpvs(dsv, "&lt;");
break;
case '>':
- Perl_sv_catpvf(aTHX_ dsv, "&gt;");
+ sv_catpvs(dsv, "&gt;");
break;
case '&':
- Perl_sv_catpvf(aTHX_ dsv, "&amp;");
+ sv_catpvs(dsv, "&amp;");
break;
case '"':
- Perl_sv_catpvf(aTHX_ dsv, "&#34;");
+ sv_catpvf(dsv, "&#34;");
break;
default:
if (c < 0xD800) {