* job.c (child_error): Add filename length to output length.

Reported by Dale Stimson <dale@riyescott.com>
This commit is contained in:
Paul Smith 2016-04-09 09:25:50 -04:00
parent 5bd7ad2b22
commit 53554e41e8

6
job.c
View file

@ -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,