diff options
author | 2009-11-12 21:57:46 +0000 | |
---|---|---|
committer | 2009-11-12 21:57:46 +0000 | |
commit | 2fdb553b3a1f58b842c736596ef39e157825eddb (patch) | |
tree | fbab0126b215db6f6d2aa12e62f90f18dc01fc76 | |
parent | memory leak in one more case, found by parfait; ok jsg (diff) | |
download | wireguard-openbsd-2fdb553b3a1f58b842c736596ef39e157825eddb.tar.xz wireguard-openbsd-2fdb553b3a1f58b842c736596ef39e157825eddb.zip |
fix comparison, from NetBSD PR/42177
ok miod@
-rw-r--r-- | games/rogue/monster.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/games/rogue/monster.c b/games/rogue/monster.c index 2258d901b7a..1ff93c4cd88 100644 --- a/games/rogue/monster.c +++ b/games/rogue/monster.c @@ -1,4 +1,4 @@ -/* $OpenBSD: monster.c,v 1.9 2009/10/27 23:59:26 deraadt Exp $ */ +/* $OpenBSD: monster.c,v 1.10 2009/11/12 21:57:46 dms Exp $ */ /* $NetBSD: monster.c,v 1.3 1995/04/22 10:27:45 cgd Exp $ */ /* @@ -672,7 +672,7 @@ create_monster(void) for (i = 0; i < 9; i++) { rand_around(i, &row, &col); - if (((row == rogue.row) && (col = rogue.col)) || + if (((row == rogue.row) && (col == rogue.col)) || (row < MIN_ROW) || (row > (DROWS-2)) || (col < 0) || (col > (DCOLS-1))) { continue; |