Module Name: src Committed By: joerg Date: Mon May 23 22:56:11 UTC 2011
Modified Files: src/games/hunt/hunt: hunt.c Log Message: Don't use variables as format string. To generate a diff of this commit: cvs rdiff -u -r1.38 -r1.39 src/games/hunt/hunt/hunt.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/games/hunt/hunt/hunt.c diff -u src/games/hunt/hunt/hunt.c:1.38 src/games/hunt/hunt/hunt.c:1.39 --- src/games/hunt/hunt/hunt.c:1.38 Wed Jan 5 15:52:20 2011 +++ src/games/hunt/hunt/hunt.c Mon May 23 22:56:11 2011 @@ -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 @@ int serrno = errno; fincurs(); errno = serrno; - err(eval, mesg ? mesg : ""); + err(eval, "%s", mesg ? mesg : ""); } /* @@ -776,7 +776,7 @@ leavex(int eval, const char *mesg) { fincurs(); - errx(eval, mesg ? mesg : ""); + errx(eval, "%s", mesg ? mesg : ""); } static long