From caf42cad5e778f1d93df2f44bcd10505105028ff Mon Sep 17 00:00:00 2001 From: joerg Date: Mon, 23 May 2011 22:56:11 +0000 Subject: Don't use variables as format string. --- hunt/hunt/hunt.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'hunt') 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 #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 @@ -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 -- cgit v1.2.3-56-ge451