Module Name: src
Committed By: joerg
Date: Wed May 25 15:34:19 UTC 2011
Modified Files:
src/sbin/bioctl: bioctl.c
Log Message:
Simplify
To generate a diff of this commit:
cvs rdiff -u -r1.13 -r1.14 src/sbin/bioctl/bioctl.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/bioctl/bioctl.c
diff -u src/sbin/bioctl/bioctl.c:1.13 src/sbin/bioctl/bioctl.c:1.14
--- src/sbin/bioctl/bioctl.c:1.13 Sat Feb 20 22:25:54 2010
+++ src/sbin/bioctl/bioctl.c Wed May 25 15:34:19 2011
@@ -1,4 +1,4 @@
-/* $NetBSD: bioctl.c,v 1.13 2010/02/20 22:25:54 ahoka Exp $ */
+/* $NetBSD: bioctl.c,v 1.14 2011/05/25 15:34:19 joerg Exp $ */
/* $OpenBSD: bioctl.c,v 1.52 2007/03/20 15:26:06 jmc Exp $ */
/*
@@ -31,7 +31,7 @@
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: bioctl.c,v 1.13 2010/02/20 22:25:54 ahoka Exp $");
+__RCSID("$NetBSD: bioctl.c,v 1.14 2011/05/25 15:34:19 joerg Exp $");
#endif
#include <sys/types.h>
@@ -320,9 +320,9 @@
}
if (rtypestr)
- snprintf(rtype, sizeof(rtype), rtypestr);
+ strlcpy(rtype, rtypestr, sizeof(rtype));
if (stripestr)
- snprintf(stripe, sizeof(stripe), stripestr);
+ strlcpy(stripe, stripestr, sizeof(stripe));
else
snprintf(stripe, sizeof(stripe), "%uK", bv.bv_stripe_size);