summaryrefslogtreecommitdiffstats
path: root/hunt
diff options
context:
space:
mode:
authorjoerg <joerg@NetBSD.org>2011-05-23 22:56:11 +0000
committerjoerg <joerg@NetBSD.org>2011-05-23 22:56:11 +0000
commitcaf42cad5e778f1d93df2f44bcd10505105028ff (patch)
tree4529e1f17111206e9eea8d6d294a2da32b599f6e /hunt
parentef178239f8a825e1c9dfde4c994a8eb7d680c9b2 (diff)
downloadbsdgames-darwin-caf42cad5e778f1d93df2f44bcd10505105028ff.tar.gz
bsdgames-darwin-caf42cad5e778f1d93df2f44bcd10505105028ff.tar.zst
bsdgames-darwin-caf42cad5e778f1d93df2f44bcd10505105028ff.zip
Don't use variables as format string.
Diffstat (limited to 'hunt')
-rw-r--r--hunt/hunt/hunt.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/hunt/hunt/hunt.c b/hunt/hunt/hunt.c
index b6b7d5e0..5c7e19fc 100644
--- a/hunt/hunt/hunt.c
+++ b/hunt/hunt/hunt.c
@@ -1,4 +1,4 @@
-/* $NetBSD: hunt.c,v 1.38 2011/01/05 15:52:20 dholland Exp $ */
+/* $NetBSD: hunt.c,v 1.39 2011/05/23 22:56:11 joerg Exp $ */
/*
* Copyright (c) 1983-2003, Regents of the University of California.
* All rights reserved.
@@ -32,7 +32,7 @@
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: hunt.c,v 1.38 2011/01/05 15:52:20 dholland Exp $");
+__RCSID("$NetBSD: hunt.c,v 1.39 2011/05/23 22:56:11 joerg Exp $");
#endif /* not lint */
#include <sys/param.h>
@@ -764,7 +764,7 @@ leave(int eval, const char *mesg)
int serrno = errno;
fincurs();
errno = serrno;
- err(eval, mesg ? mesg : "");
+ err(eval, "%s", mesg ? mesg : "");
}
/*
@@ -776,7 +776,7 @@ void
leavex(int eval, const char *mesg)
{
fincurs();
- errx(eval, mesg ? mesg : "");
+ errx(eval, "%s", mesg ? mesg : "");
}
static long