mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-12-30 15:38:06 +01:00
Fix incorrect format string in call to errx().
This commit is contained in:
parent
ad9e02601c
commit
79031fd714
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=31583
@ -48,7 +48,7 @@ static const char copyright[] =
|
||||
static char sccsid[] = "@(#)from: lpr.c 8.4 (Berkeley) 4/28/95";
|
||||
#endif
|
||||
static const char rcsid[] =
|
||||
"$Id: lpr.c,v 1.21 1997/09/24 06:48:07 charnier Exp $";
|
||||
"$Id: lpr.c,v 1.22 1997/12/02 20:46:10 wollman Exp $";
|
||||
#endif /* not lint */
|
||||
|
||||
/*
|
||||
@ -254,7 +254,7 @@ main(argc, argv)
|
||||
if (pp->no_copies && ncopies > 1)
|
||||
errx(1, "multiple copies are not allowed");
|
||||
if (pp->max_copies > 0 && ncopies > pp->max_copies)
|
||||
errx(1, "only %d copies are allowed", pp->max_copies);
|
||||
errx(1, "only %ld copies are allowed", pp->max_copies);
|
||||
/*
|
||||
* Get the identity of the person doing the lpr using the same
|
||||
* algorithm as lprm. Actually, not quite -- lprm will override
|
||||
|
Loading…
Reference in New Issue
Block a user