aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/mfiutil
diff options
context:
space:
mode:
authorSean Bruno <sbruno@FreeBSD.org>2013-12-04 00:28:44 +0000
committerSean Bruno <sbruno@FreeBSD.org>2013-12-04 00:28:44 +0000
commit4a40e59f97c8831b3f31a71ef15dd6313ec9b99e (patch)
tree63faedfa07c639a5ff96b2eb5ed41711b7a79c72 /usr.sbin/mfiutil
parent53449c98b79d8ab389513450271adfa328e0ab6f (diff)
downloadsrc-4a40e59f97c8831b3f31a71ef15dd6313ec9b99e.tar.gz
src-4a40e59f97c8831b3f31a71ef15dd6313ec9b99e.zip
svn r251516 resized the buf argument a bit too much. Pass a hardcoded
size of 6 to humanize_number() to resolve this. PR: 184405 Submitted by: jhb MFC after: 2 weeks
Notes
Notes: svn path=/head/; revision=258901
Diffstat (limited to 'usr.sbin/mfiutil')
-rw-r--r--usr.sbin/mfiutil/mfi_show.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/mfiutil/mfi_show.c b/usr.sbin/mfiutil/mfi_show.c
index 6bb86124f996..f0f5bab60e9f 100644
--- a/usr.sbin/mfiutil/mfi_show.c
+++ b/usr.sbin/mfiutil/mfi_show.c
@@ -320,7 +320,7 @@ print_pd(struct mfi_pd_info *info, int state_len)
const char *s;
char buf[256];
- humanize_number(buf, sizeof(buf), info->raw_size * 512, "",
+ humanize_number(buf, 6, info->raw_size * 512, "",
HN_AUTOSCALE, HN_B | HN_NOSPACE |HN_DECIMAL);
printf("(%6s) ", buf);
if (info->state.ddf.v.pd_type.is_foreign) {