summaryrefslogtreecommitdiff
path: root/usr.sbin/eeprom
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2002-05-29 09:48:15 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2002-05-29 09:48:15 +0000
commitfede8b436e7e75e1b2bf4cd816f4459fb7d35613 (patch)
treea414b9fb30722bc608d14e1ffb14686cd89b5a88 /usr.sbin/eeprom
parent0f255ec3ff0a620b4f8064781b438d7cf26407f5 (diff)
snprintf blah blah blah
Diffstat (limited to 'usr.sbin/eeprom')
-rw-r--r--usr.sbin/eeprom/eehandlers.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/eeprom/eehandlers.c b/usr.sbin/eeprom/eehandlers.c
index f8547e275ae..8a19402ec0d 100644
--- a/usr.sbin/eeprom/eehandlers.c
+++ b/usr.sbin/eeprom/eehandlers.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: eehandlers.c,v 1.8 2002/02/16 21:28:02 millert Exp $ */
+/* $OpenBSD: eehandlers.c,v 1.9 2002/05/29 09:48:14 deraadt Exp $ */
/* $NetBSD: eehandlers.c,v 1.2 1996/02/28 01:13:22 thorpej Exp $ */
/*-
@@ -502,7 +502,7 @@ doio(ktent, buf, len, wr)
buf2 = (u_char *)calloc(1, len);
if (buf2 == NULL) {
- sprintf(err_str, "memory allocation failed");
+ snprintf(err_str, sizeof err_str, "memory allocation failed");
return (1);
}