diff options
author | Angelos D. Keromytis <angelos@cvs.openbsd.org> | 1999-11-03 21:20:23 +0000 |
---|---|---|
committer | Angelos D. Keromytis <angelos@cvs.openbsd.org> | 1999-11-03 21:20:23 +0000 |
commit | 7bdd0aedf4fb033a022dd959e3f2399aabb2a89f (patch) | |
tree | c8b1476dae3c10d04d08918def3782c2c2ed38fd /sys | |
parent | 0b9c2b74719f85b62bcd6d6fdeecb0f90c01e3f4 (diff) |
bzero the right amount of memory; I think NetBSD has this problem too.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/scsi/cd.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/sys/scsi/cd.c b/sys/scsi/cd.c index fdc39809089..7683c2e161d 100644 --- a/sys/scsi/cd.c +++ b/sys/scsi/cd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cd.c,v 1.47 1999/11/03 20:11:58 angelos Exp $ */ +/* $OpenBSD: cd.c,v 1.48 1999/11/03 21:20:22 angelos Exp $ */ /* $NetBSD: cd.c,v 1.100 1997/04/02 02:29:30 mycroft Exp $ */ /* @@ -1584,7 +1584,7 @@ dvd_auth(cd, a) u_int8_t buf[20]; int error; - bzero(cmd.bytes, 15); + bzero(cmd.bytes, sizeof(cmd.bytes)); bzero(buf, sizeof(buf)); switch (a->type) { @@ -1702,7 +1702,7 @@ dvd_read_physical(cd, s) struct dvd_layer *layer; int i; - bzero(cmd.bytes, 15); + bzero(cmd.bytes, sizeof(cmd.bytes)); bzero(buf, sizeof(buf)); cmd.opcode = GPCMD_READ_DVD_STRUCTURE; cmd.bytes[6] = s->type; @@ -1742,7 +1742,7 @@ dvd_read_copyright(cd, s) u_int8_t buf[8]; int error; - bzero(cmd.bytes, 15); + bzero(cmd.bytes, sizeof(cmd.bytes)); bzero(buf, sizeof(buf)); cmd.opcode = GPCMD_READ_DVD_STRUCTURE; cmd.bytes[6] = s->type; @@ -1767,7 +1767,7 @@ dvd_read_disckey(cd, s) u_int8_t buf[4 + 2048]; int error; - bzero(cmd.bytes, 15); + bzero(cmd.bytes, sizeof(cmd.bytes)); bzero(buf, sizeof(buf)); cmd.opcode = GPCMD_READ_DVD_STRUCTURE; cmd.bytes[6] = s->type; @@ -1791,7 +1791,7 @@ dvd_read_bca(cd, s) u_int8_t buf[4 + 188]; int error; - bzero(cmd.bytes, 15); + bzero(cmd.bytes, sizeof(cmd.bytes)); bzero(buf, sizeof(buf)); cmd.opcode = GPCMD_READ_DVD_STRUCTURE; cmd.bytes[6] = s->type; @@ -1817,7 +1817,7 @@ dvd_read_manufact(cd, s) u_int8_t buf[4 + 2048]; int error; - bzero(cmd.bytes, 15); + bzero(cmd.bytes, sizeof(cmd.bytes)); bzero(buf, sizeof(buf)); cmd.opcode = GPCMD_READ_DVD_STRUCTURE; cmd.bytes[6] = s->type; |