From: Richard Levitte Date: Wed, 10 Feb 2016 18:06:54 +0000 (+0100) Subject: Make sure to escape backslashes and single quotes for buildinf.h X-Git-Tag: OpenSSL_1_1_0-pre3~119 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=9ca2529dbf5210e1e0413095f47d4cd79966bc94;p=oweals%2Fopenssl.git Make sure to escape backslashes and single quotes for buildinf.h Reviewed-by: Rich Salz --- 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"; }