mirror of
https://github.com/openbsd/src.git
synced 2025-01-10 06:47:55 -08:00
format string is better be literal
OK deraadt
This commit is contained in:
parent
ab4bb7f7b2
commit
12fe996ad7
@ -1,4 +1,4 @@
|
||||
/* $OpenBSD: hunt.c,v 1.21 2016/03/07 12:07:56 mestre Exp $ */
|
||||
/* $OpenBSD: hunt.c,v 1.22 2017/04/08 22:50:41 gsoares Exp $ */
|
||||
/* $NetBSD: hunt.c,v 1.8 1998/09/13 15:27:28 hubertf Exp $ */
|
||||
/*
|
||||
* Copyright (c) 1983-2003, Regents of the University of California.
|
||||
@ -506,9 +506,9 @@ leave(int eval, char *mesg)
|
||||
errno = saved_errno;
|
||||
|
||||
if (errno == 0 && mesg != NULL)
|
||||
errx(eval, mesg);
|
||||
errx(eval, "%s", mesg);
|
||||
else if (mesg != NULL)
|
||||
err(eval, mesg);
|
||||
err(eval, "%s", mesg);
|
||||
exit(eval);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user