mirror of
https://salsa.debian.org/srivasta/make-dfsg.git
synced 2024-12-28 15:58:07 +00:00
* job.c (child_error): Add filename length to output length.
Reported by Dale Stimson <dale@riyescott.com>
This commit is contained in:
parent
5bd7ad2b22
commit
53554e41e8
1 changed files with 3 additions and 3 deletions
6
job.c
6
job.c
|
@ -481,7 +481,7 @@ child_error (struct child *child,
|
|||
const struct file *f = child->file;
|
||||
const gmk_floc *flocp = &f->cmds->fileinfo;
|
||||
const char *nm;
|
||||
size_t l = strlen (f->name);
|
||||
size_t l;
|
||||
|
||||
if (ignored && silent_flag)
|
||||
return;
|
||||
|
@ -504,9 +504,9 @@ child_error (struct child *child,
|
|||
nm = a;
|
||||
}
|
||||
|
||||
OUTPUT_SET (&child->output);
|
||||
l = strlen (pre) + strlen (nm) + strlen (f->name) + strlen (post);
|
||||
|
||||
l += strlen (pre) + strlen (post);
|
||||
OUTPUT_SET (&child->output);
|
||||
|
||||
if (exit_sig == 0)
|
||||
error (NILF, l + INTSTR_LENGTH,
|
||||
|
|
Loading…
Reference in a new issue