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
commit7deb42aafdf547a3648f60ff04e0114c10a3d18d (patch)
tree9330340bfd24da63b6bf280a1977bfc0f2d6d0a3 /job.c
parente2f16fdf45ec0506c68f32e9fc6a7b31ae17fdc6 (diff)
downloadgunmake-7deb42aafdf547a3648f60ff04e0114c10a3d18d.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 b52868f..a4dadb1 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],