]> git.ipfire.org Git - people/ms/ipfire-3.x.git/blame - pkgs/make/patches/make-3.81-strcpy-overlap.patch
Move packages to pkgs subdirectory.
[people/ms/ipfire-3.x.git] / pkgs / make / patches / make-3.81-strcpy-overlap.patch
CommitLineData
ebd9bd39
MT
1Index: job.c
2===================================================================
3RCS file: /sources/make/make/job.c,v
4retrieving revision 1.193
5diff -u -r1.193 job.c
6--- a/job.c 9 Jun 2009 15:35:38 -0000 1.193
7+++ b/job.c 31 Jul 2009 11:42:16 -0000
8@@ -1600,7 +1600,7 @@
9 /* There are no more references in this line to worry about.
10 Copy the remaining uninteresting text to the output. */
11 if (out != in)
12- strcpy (out, in);
13+ memmove (out, in, strlen (in) + 1);
14
15 /* Finally, expand the line. */
16 lines[i] = allocated_variable_expand_for_file (cmds->command_lines[i],