summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>2012-10-23 20:32:22 +0000
committerMarc Espie <espie@cvs.openbsd.org>2012-10-23 20:32:22 +0000
commit969b92bca801e735766218b44a471da1d2e0a625 (patch)
treef6ef23209a6ebee2730566d3725c2adf5595f134 /usr.bin
parent5a014e3963ac3b6ff70c6453c1dabd33d7f2f4c4 (diff)
fix fringe case where length is around 140.
problem found by Tobias Ulmer.
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/make/job.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/make/job.c b/usr.bin/make/job.c
index d97e61c806b..a19e70a0e74 100644
--- a/usr.bin/make/job.c
+++ b/usr.bin/make/job.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: job.c,v 1.131 2012/10/18 17:54:43 espie Exp $ */
+/* $OpenBSD: job.c,v 1.132 2012/10/23 20:32:21 espie Exp $ */
/* $NetBSD: job.c,v 1.16 1996/11/06 17:59:08 christos Exp $ */
/*
@@ -303,7 +303,7 @@ print_error(Job *j)
Buf_printf(&buf, " (%s:%lu", j->location->fname, j->location->lineno);
Buf_printf(&buf, " '%s'", j->node->name);
if ((j->flags & (JOB_SILENT | JOB_IS_EXPENSIVE)) == JOB_SILENT
- && Buf_Size(&buf) < 140) {
+ && Buf_Size(&buf) < 140-2) {
size_t len = strlen(j->cmd);
Buf_AddString(&buf, ": ");
if (len + Buf_Size(&buf) < 140)