-/* $NetBSD: shield.c,v 1.10 2009/05/24 21:44:56 dholland Exp $ */
+/* $NetBSD: shield.c,v 1.13 2009/08/12 08:54:54 dholland Exp $ */
/*
* Copyright (c) 1980, 1993
#if 0
static char sccsid[] = "@(#)shield.c 8.1 (Berkeley) 5/31/93";
#else
-__RCSID("$NetBSD: shield.c,v 1.10 2009/05/24 21:44:56 dholland Exp $");
+__RCSID("$NetBSD: shield.c,v 1.13 2009/08/12 08:54:54 dholland Exp $");
#endif
#endif /* not lint */
** so you get partial hits.
*/
-const struct cvntab Udtab[] = {
+static const struct cvntab Udtab[] = {
{ "u", "p", (cmdfun)1, 0 },
{ "d", "own", (cmdfun)0, 0 },
{ NULL, NULL, NULL, 0 }
if (f < 0) {
/* cloaking device */
if (Ship.ship == QUEENE) {
- printf("Ye Faire Queene does not have the cloaking device.\n");
+ printf("Ye Faire Queene does not have the "
+ "cloaking device.\n");
return;
}
device = "Cloaking device";
i = (long) r->value;
} else {
if (*stat)
- (void)sprintf(s, "%s %s up. Do you want %s down", device, dev2, dev3);
+ (void)snprintf(s, sizeof(s),
+ "%s %s up. Do you want %s down",
+ device, dev2, dev3);
else
- (void)sprintf(s, "%s %s down. Do you want %s up", device, dev2, dev3);
+ (void)snprintf(s, sizeof(s),
+ "%s %s down. Do you want %s up",
+ device, dev2, dev3);
if (!getynpar(s))
return;
i = !*stat;