diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2006-02-22 19:43:43 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2006-02-22 19:43:43 +0000 |
commit | 2e3754ec7b1ebbae215d276992439b8f9d558b26 (patch) | |
tree | 4a031bdc6ac08967c63183c94967ddd880a1deba | |
parent | ccf099f611ed116a727651d01f21525b8a559bb4 (diff) |
Fix size in snprintf() call; previous value turned out to be correct by luck.
-rw-r--r-- | sys/dev/isa/ess.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/isa/ess.c b/sys/dev/isa/ess.c index b0d41bffd1e..1f7ddbb7569 100644 --- a/sys/dev/isa/ess.c +++ b/sys/dev/isa/ess.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ess.c,v 1.10 2005/04/15 13:05:14 mickey Exp $ */ +/* $OpenBSD: ess.c,v 1.11 2006/02/22 19:43:42 miod Exp $ */ /* $NetBSD: ess.c,v 1.44.4.1 1999/06/21 01:18:00 thorpej Exp $ */ /* @@ -1007,7 +1007,7 @@ essattach(sc) snprintf(ess_device.name, sizeof ess_device.name, "ES%s", essmodel[sc->sc_model]); - snprintf(ess_device.version, sizeof ess_device.name, "0x%04x", + snprintf(ess_device.version, sizeof ess_device.version, "0x%04x", sc->sc_version); if (ESS_USE_AUDIO1(sc->sc_model)) |