summaryrefslogtreecommitdiff
path: root/job.c
diff options
context:
space:
mode:
authorPaul Smith <psmith@gnu.org>2009-08-02 16:05:42 +0000
committerPaul Smith <psmith@gnu.org>2009-08-02 16:05:42 +0000
commita56bd7cd7bc9b2817d6154fd5f942afb00d79db2 (patch)
tree9330340bfd24da63b6bf280a1977bfc0f2d6d0a3 /job.c
parentd9f50293fdd49cf75f10e8d8ddb17b861dabbba2 (diff)
downloadmake-a56bd7cd7bc9b2817d6154fd5f942afb00d79db2.tar.gz
- Fix Savannah bug #27093
- Fix Savannah bug #27143 - Fix Savannah bug #23960 - Fix Savannah bug #27148
Diffstat (limited to 'job.c')
-rw-r--r--job.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/job.c b/job.c
index b52868f7..a4dadb17 100644
--- a/job.c
+++ b/job.c
@@ -1600,7 +1600,7 @@ new_job (struct file *file)
/* There are no more references in this line to worry about.
Copy the remaining uninteresting text to the output. */
if (out != in)
- strcpy (out, in);
+ memmove (out, in, strlen (in) + 1);
/* Finally, expand the line. */
lines[i] = allocated_variable_expand_for_file (cmds->command_lines[i],