From 1c987590202c8ca8dec65a88afd1d73328d55b39 Mon Sep 17 00:00:00 2001 From: dholland Date: Thu, 27 Dec 2007 23:52:59 +0000 Subject: Comprehensive (or at least extensive) string handling cleanup for rogue. This patch dates (mostly) back to 2002; the critical parts of it were handled back then by security-officer. As far as I know, there's nothing exploitable fixed herein. A slightly earlier version of this patch was reviewed by Christian Biere when I filed it as PR 34750. --- rogue/monster.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'rogue/monster.c') diff --git a/rogue/monster.c b/rogue/monster.c index 7fe5d699..bca5eb1c 100644 --- a/rogue/monster.c +++ b/rogue/monster.c @@ -1,4 +1,4 @@ -/* $NetBSD: monster.c,v 1.11 2006/03/30 04:10:04 jnemeth Exp $ */ +/* $NetBSD: monster.c,v 1.12 2007/12/27 23:53:00 dholland Exp $ */ /* * Copyright (c) 1988, 1993 @@ -37,7 +37,7 @@ #if 0 static char sccsid[] = "@(#)monster.c 8.1 (Berkeley) 5/31/93"; #else -__RCSID("$NetBSD: monster.c,v 1.11 2006/03/30 04:10:04 jnemeth Exp $"); +__RCSID("$NetBSD: monster.c,v 1.12 2007/12/27 23:53:00 dholland Exp $"); #endif #endif /* not lint */ @@ -709,7 +709,7 @@ create_monster() wake_up(monster); } } else { - message("you hear a faint cry of anguish in the distance", 0); + messagef(0, "you hear a faint cry of anguish in the distance"); } } @@ -851,7 +851,7 @@ aggravate() { object *monster; - message("you hear a high pitched humming noise", 0); + messagef(0, "you hear a high pitched humming noise"); monster = level_monsters.next_monster; -- cgit v1.2.3