svn commit: r260325 - stable/9/usr.sbin/mfiutil

Sean Bruno sbruno at FreeBSD.org
Sun Jan 5 17:33:11 UTC 2014


Author: sbruno
Date: Sun Jan  5 17:33:10 2014
New Revision: 260325
URL: http://svnweb.freebsd.org/changeset/base/260325

Log:
  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

Modified:
  stable/9/usr.sbin/mfiutil/mfi_show.c
Directory Properties:
  stable/9/usr.sbin/mfiutil/   (props changed)

Modified: stable/9/usr.sbin/mfiutil/mfi_show.c
==============================================================================
--- stable/9/usr.sbin/mfiutil/mfi_show.c	Sun Jan  5 17:29:53 2014	(r260324)
+++ stable/9/usr.sbin/mfiutil/mfi_show.c	Sun Jan  5 17:33:10 2014	(r260325)
@@ -320,7 +320,7 @@ print_pd(struct mfi_pd_info *info, int s
 	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) {


More information about the svn-src-stable-9 mailing list