summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1996-08-31 12:42:50 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1996-08-31 12:42:50 +0000
commitc37f457d60610805032d41cd539dba36841d7aa4 (patch)
tree0bd27140e868e717400c6c2a1ed5681abebb86f4
parent213607a7be8a5fb716de7515e0fc29ffe5a075f8 (diff)
buf oflow; from brian@saturn.net
-rw-r--r--usr.sbin/eeprom/eehandlers.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/eeprom/eehandlers.c b/usr.sbin/eeprom/eehandlers.c
index 8dd5dd1f568..559c8b44e88 100644
--- a/usr.sbin/eeprom/eehandlers.c
+++ b/usr.sbin/eeprom/eehandlers.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: eehandlers.c,v 1.3 1996/03/25 15:55:18 niklas Exp $ */
+/* $OpenBSD: eehandlers.c,v 1.4 1996/08/31 12:42:49 deraadt Exp $ */
/* $NetBSD: eehandlers.c,v 1.2 1996/02/28 01:13:22 thorpej Exp $ */
/*-
@@ -414,7 +414,7 @@ ee_diagpath(ktent, arg)
if (arg) {
if (strlen(arg) > sizeof(path))
BARF(ktent);
- sprintf(path, arg);
+ snprintf(path, sizeof path, arg);
if (doio(ktent, (u_char *)&path[0], sizeof(path), IO_WRITE))
FAILEDWRITE(ktent);
} else
@@ -443,7 +443,7 @@ ee_banner(ktent, arg)
BARF(ktent);
if (*arg != '\0') {
enable = EE_TRUE;
- sprintf(string, arg);
+ snprintf(string, sizeof string, arg);
if (doio(ktent, (u_char *)string,
sizeof(string), IO_WRITE))
FAILEDWRITE(ktent);