-/* $NetBSD: shield.c,v 1.11 2009/05/24 22:55:03 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.11 2009/05/24 22:55:03 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 }
i = (long) r->value;
} else {
if (*stat)
- (void)sprintf(s, "%s %s up. Do you want %s down",
+ (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",
+ (void)snprintf(s, sizeof(s),
+ "%s %s down. Do you want %s up",
device, dev2, dev3);
if (!getynpar(s))
return;