From ff0d9dede6767d5a85e42f9b93c850f7ba356a41 Mon Sep 17 00:00:00 2001 From: Markus Armbruster Date: Tue, 30 Aug 2005 17:27:37 +0000 Subject: [PATCH] (nbomb): Rev. 1.17 made a questionable initializer incorrect, and thus broke pin-bombing for hosts where sizeof(i_type) != sizeof(int). Fix. --- src/lib/commands/bomb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/commands/bomb.c b/src/lib/commands/bomb.c index 86d775505..13ed92433 100644 --- a/src/lib/commands/bomb.c +++ b/src/lib/commands/bomb.c @@ -79,7 +79,7 @@ static i_type bombcomm[] = { I_UW, I_RAD }; -static int nbomb = sizeof(bombcomm) / sizeof(int); +static int nbomb = sizeof(bombcomm) / sizeof(*bombcomm); int bomb(void) -- 2.43.0