summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Gray <jsg@cvs.openbsd.org>2017-08-23 05:13:02 +0000
committerJonathan Gray <jsg@cvs.openbsd.org>2017-08-23 05:13:02 +0000
commit37c82804356323b8cd1087c7be17da165b0210d6 (patch)
treebfba0fe310d6776c2bbc43db9d640845ca1c07eb
parent2c138d39220ff8ca0e447018d1b76366d45aaf32 (diff)
Use the correct argument to sizeof. Coverity CID 1453382.
-rw-r--r--sys/dev/ata/atascsi.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/ata/atascsi.c b/sys/dev/ata/atascsi.c
index 04995c4567b..4584aaf9fc5 100644
--- a/sys/dev/ata/atascsi.c
+++ b/sys/dev/ata/atascsi.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: atascsi.c,v 1.128 2016/03/15 18:04:57 jca Exp $ */
+/* $OpenBSD: atascsi.c,v 1.129 2017/08/23 05:13:01 jsg Exp $ */
/*
* Copyright (c) 2007 David Gwynne <dlg@openbsd.org>
@@ -877,7 +877,7 @@ atascsi_disk_vpd_ata(struct scsi_xfer *xs)
MIN(strlen("atascsi"), sizeof(pg.sat_product)));
memset(pg.sat_revision, ' ', sizeof(pg.sat_revision));
memcpy(pg.sat_revision, osrelease,
- MIN(strlen(osrelease), sizeof(pg.sat_product)));
+ MIN(strlen(osrelease), sizeof(pg.sat_revision)));
/* XXX device signature */