From 331df588a3a00383921f95802a9cd6c8aea90385 Mon Sep 17 00:00:00 2001 From: sbruno Date: Wed, 4 Dec 2013 00:28:44 +0000 Subject: 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 --- usr.sbin/mfiutil/mfi_show.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'usr.sbin/mfiutil') diff --git a/usr.sbin/mfiutil/mfi_show.c b/usr.sbin/mfiutil/mfi_show.c index 6bb8612..f0f5bab 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) { -- cgit v1.1