summaryrefslogtreecommitdiff
path: root/patchlevel.h
diff options
context:
space:
mode:
authorGisle Aas <gisle@activestate.com>2010-03-26 22:55:51 -0800
committerGisle Aas <gisle@aas.no>2010-04-18 17:25:02 +0200
commit321e50c78dc0d470de5f7359ebb2943e43def5bd (patch)
treef01d69659789d398a0fa3ed0c704bf81807049b5 /patchlevel.h
parent6348b76e16558421dd8599cc147a5c7f13fddbb9 (diff)
downloadperl-321e50c78dc0d470de5f7359ebb2943e43def5bd.tar.gz
Escape patch strings before embedding them in patchlevel.h
Diffstat (limited to 'patchlevel.h')
-rw-r--r--patchlevel.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/patchlevel.h b/patchlevel.h
index 7bd228b6f2..cb18e9f7dd 100644
--- a/patchlevel.h
+++ b/patchlevel.h
@@ -92,6 +92,8 @@ my $seen=0;
while (<PLIN>) {
if (/\t,NULL/ and $seen) {
while (my $c = shift @ARGV){
+ $c =~ s|\\|\\\\|g;
+ $c =~ s|"|\\"|g;
print PLOUT qq{\t,"$c"\n};
}
}