Make sure to escape backslashes and single quotes for buildinf.h
[openssl.git] / 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";
         }