From 9ca2529dbf5210e1e0413095f47d4cd79966bc94 Mon Sep 17 00:00:00 2001 From: Richard Levitte Date: Wed, 10 Feb 2016 19:06:54 +0100 Subject: [PATCH] Make sure to escape backslashes and single quotes for buildinf.h Reviewed-by: Rich Salz --- util/mkbuildinf.pl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/util/mkbuildinf.pl b/util/mkbuildinf.pl index ffa8a39933..b880c7f226 100755 --- a/util/mkbuildinf.pl +++ b/util/mkbuildinf.pl @@ -17,8 +17,9 @@ print <<"END_OUTPUT"; END_OUTPUT my $ctr = 0; foreach my $c (split //, $cflags) { + $c =~ s|([\\'])|\\$1|; # Max 18 characters per line - if (($ctr++ % 18) == 0) { + if (($ctr++ % 16) == 0) { if ($ctr != 1) { print "\n"; } -- 2.25.1