Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/games/hunt/hunt Don't use variables as format string.



details:   https://anonhg.NetBSD.org/src/rev/d9f25137dc3d
branches:  trunk
changeset: 765285:d9f25137dc3d
user:      joerg <joerg%NetBSD.org@localhost>
date:      Mon May 23 22:56:11 2011 +0000

description:
Don't use variables as format string.

diffstat:

 games/hunt/hunt/hunt.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (36 lines):

diff -r 7b07aeb19fec -r d9f25137dc3d games/hunt/hunt/hunt.c
--- a/games/hunt/hunt/hunt.c    Mon May 23 22:53:25 2011 +0000
+++ b/games/hunt/hunt/hunt.c    Mon May 23 22:56:11 2011 +0000
@@ -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



Home | Main Index | Thread Index | Old Index