summaryrefslogtreecommitdiff
path: root/packaging/make-3.81-newlines.patch
blob: d9bb313d68bfc2fce07f77cf2178d6ecea3a91b5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
--- make-3.81-orig/job.c	2007-02-21 19:10:54.000000000 +0100
+++ make-3.81-pm/job.c	2007-02-22 18:13:59.000000000 +0100
@@ -2706,7 +2706,7 @@
     unsigned int line_len = strlen (line);
 
     char *new_line = (char *) alloca (shell_len + (sizeof (minus_c) - 1)
-				      + (line_len * 2) + 1);
+				      + (line_len * 4) + 1);
     char *command_ptr = NULL; /* used for batch_mode_shell mode */
 
 # ifdef __EMX__ /* is this necessary? */
@@ -2740,9 +2740,10 @@
 #endif
 	    if (PRESERVE_BSNL)
 	      {
-		*(ap++) = '\\';
+		*(ap++) = '\'';
 		*(ap++) = '\\';
 		*(ap++) = '\n';
+		*(ap++) = '\'';
 	      }
 
 	    ++p;