Module Name: src
Committed By: jakllsch
Date: Sat Jan 12 02:50:09 UTC 2013
Modified Files:
src/sbin/scsictl: scsictl.c
Log Message:
take sizeof actual symbol we are memsetting
To generate a diff of this commit:
cvs rdiff -u -r1.35 -r1.36 src/sbin/scsictl/scsictl.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sbin/scsictl/scsictl.c
diff -u src/sbin/scsictl/scsictl.c:1.35 src/sbin/scsictl/scsictl.c:1.36
--- src/sbin/scsictl/scsictl.c:1.35 Sat Nov 3 19:26:52 2012
+++ src/sbin/scsictl/scsictl.c Sat Jan 12 02:50:09 2013
@@ -1,4 +1,4 @@
-/* $NetBSD: scsictl.c,v 1.35 2012/11/03 19:26:52 jakllsch Exp $ */
+/* $NetBSD: scsictl.c,v 1.36 2013/01/12 02:50:09 jakllsch Exp $ */
/*-
* Copyright (c) 1998, 2002 The NetBSD Foundation, Inc.
@@ -36,7 +36,7 @@
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: scsictl.c,v 1.35 2012/11/03 19:26:52 jakllsch Exp $");
+__RCSID("$NetBSD: scsictl.c,v 1.36 2013/01/12 02:50:09 jakllsch Exp $");
#endif
@@ -588,7 +588,7 @@ device_format(int argc, char *argv[])
scsireq_t req;
struct scsi_test_unit_ready tcmd;
- memset(&tcmd, 0, sizeof(cmd));
+ memset(&tcmd, 0, sizeof(tcmd));
tcmd.opcode = SCSI_TEST_UNIT_READY;
memset(&req, 0, sizeof(req));