From 0bb9290e45d6d933346c5007715355a1b2f94c3a Mon Sep 17 00:00:00 2001 From: Joerg Sonnenberger Date: Tue, 22 Aug 2006 13:02:30 +0000 Subject: [PATCH] Fix format string to process all arguments. Noticed by Trevor Kendall in private mail. --- usr.sbin/jexec/jexec.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/usr.sbin/jexec/jexec.c b/usr.sbin/jexec/jexec.c index 8da3dec7b9..e69bbd2503 100644 --- a/usr.sbin/jexec/jexec.c +++ b/usr.sbin/jexec/jexec.c @@ -25,7 +25,7 @@ * SUCH DAMAGE. * * $FreeBSD: src/usr.sbin/jexec/jexec.c,v 1.2 2003/07/04 19:14:27 bmilekic Exp $ - * $DragonFly: src/usr.sbin/jexec/jexec.c,v 1.1 2005/01/31 22:29:59 joerg Exp $ + * $DragonFly: src/usr.sbin/jexec/jexec.c,v 1.2 2006/08/22 13:02:30 joerg Exp $ */ #include @@ -73,7 +73,7 @@ getjailid(const char *str) errno = 0; v = strtol(str, &ep, 10); if (v < INT_MIN || v > INT_MAX || errno == ERANGE) - errc(1, ERANGE, "invalid jail id", str); + errc(1, ERANGE, "invalid jail id: %s", str); if (ep == str || *ep != '\0') errx(1, "cannot parse jail id: %s.", str); -- 2.41.0