summaryrefslogtreecommitdiffstats
path: root/usr.sbin
diff options
context:
space:
mode:
authorsbruno <sbruno@FreeBSD.org>2014-01-05 17:29:53 +0000
committersbruno <sbruno@FreeBSD.org>2014-01-05 17:29:53 +0000
commit1bba01828c15c706eae833685b7f0c07c42f7c54 (patch)
treeaa28db05f2c9acdc84728a28b4ab3ee0627dc987 /usr.sbin
parentdafd81e458aa56a9841e3c51b18340409c362b0b (diff)
downloadFreeBSD-src-1bba01828c15c706eae833685b7f0c07c42f7c54.zip
FreeBSD-src-1bba01828c15c706eae833685b7f0c07c42f7c54.tar.gz
MFC r258901:
svn r251516 resized the buf argument a bit too much. Pass a hardcoded size of 6 to humanize_number() to resolve this. PR: bin/184405 Submitted by: jhb
Diffstat (limited to 'usr.sbin')
-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 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) {
OpenPOWER on IntegriCloud