diff options
| author | jmcneill <jmcneill@NetBSD.org> | 2006-10-11 05:12:06 +0000 |
|---|---|---|
| committer | jmcneill <jmcneill@NetBSD.org> | 2006-10-11 05:12:06 +0000 |
| commit | 648920a00e2ee81217db89bc488b381b25e7524a (patch) | |
| tree | 052336aa4e630eb65b92bcc7dcf397a3c525c996 | |
| parent | 12e8bb915ecdcc0ea1abd49a1f6ccb4fcc0bcb20 (diff) | |
Size is the third argument to memset, not the second.
| -rw-r--r-- | sys/dev/pci/twa.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/pci/twa.c b/sys/dev/pci/twa.c index 8b9621c936d..bc6c2b58a40 100644 --- a/sys/dev/pci/twa.c +++ b/sys/dev/pci/twa.c @@ -1,4 +1,4 @@ -/* $NetBSD: twa.c,v 1.13 2006/09/23 22:16:35 manu Exp $ */ +/* $NetBSD: twa.c,v 1.14 2006/10/11 05:12:06 jmcneill Exp $ */ /* $wasabi: twa.c,v 1.27 2006/07/28 18:17:21 wrstuden Exp $ */ /*- @@ -74,7 +74,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: twa.c,v 1.13 2006/09/23 22:16:35 manu Exp $"); +__KERNEL_RCSID(0, "$NetBSD: twa.c,v 1.14 2006/10/11 05:12:06 jmcneill Exp $"); #include <sys/param.h> #include <sys/systm.h> @@ -1937,7 +1937,7 @@ twa_flash_firmware(struct twa_softc *sc) remaining_img_size -= this_chunk_size; - memset(tr->tr_data, fw_img_chunk_size, 0); + memset(tr->tr_data, 0, fw_img_chunk_size); memcpy(tr->tr_data, twa_fw_img + (i * fw_img_chunk_size), this_chunk_size); |
