From 12fe996ad7ead0911f59e0dda9906d11f9ca34e5 Mon Sep 17 00:00:00 2001 From: gsoares Date: Sat, 8 Apr 2017 22:50:41 +0000 Subject: [PATCH] format string is better be literal OK deraadt --- games/hunt/hunt/hunt.c | 6 +++--- 1 file 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); } -- 2.20.1