Make sure to escape backslashes and single quotes for buildinf.h
authorRichard Levitte <levitte@openssl.org>
Wed, 10 Feb 2016 18:06:54 +0000 (19:06 +0100)
committerRichard Levitte <levitte@openssl.org>
Wed, 10 Feb 2016 18:36:48 +0000 (19:36 +0100)
Reviewed-by: Rich Salz <rsalz@openssl.org>
util/mkbuildinf.pl

index ffa8a39933f13806d33cf3d9b16b2081bfc17b28..b880c7f226a2fcd73bcacf6b3167e43e49adb825 100755 (executable)
@@ -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";
         }