diff options
author | Gleydson Soares <gsoares@cvs.openbsd.org> | 2017-04-08 22:50:42 +0000 |
---|---|---|
committer | Gleydson Soares <gsoares@cvs.openbsd.org> | 2017-04-08 22:50:42 +0000 |
commit | 55b940f54efe06e1d5c8213d85e250169c27a804 (patch) | |
tree | 2e96f07fcffcc25a90aa16b06f9d28f4b4e22416 | |
parent | f1b56efd76552b3cb6510ad4f4df2771c3209ea7 (diff) |
format string is better be literal
OK deraadt
-rw-r--r-- | games/hunt/hunt/hunt.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/games/hunt/hunt/hunt.c b/games/hunt/hunt/hunt.c index dae57951cac..f0e3af65eb6 100644 --- a/games/hunt/hunt/hunt.c +++ b/games/hunt/hunt/hunt.c @@ -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); } |