Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 5 Jan 2014 17:29:53 +0000 (UTC)
From:      Sean Bruno <sbruno@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-10@freebsd.org
Subject:   svn commit: r260324 - stable/10/usr.sbin/mfiutil
Message-ID:  <201401051729.s05HTrR8089905@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: sbruno
Date: Sun Jan  5 17:29:53 2014
New Revision: 260324
URL: http://svnweb.freebsd.org/changeset/base/260324

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/10/usr.sbin/mfiutil/mfi_show.c
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/usr.sbin/mfiutil/mfi_show.c
==============================================================================
--- stable/10/usr.sbin/mfiutil/mfi_show.c	Sun Jan  5 16:45:34 2014	(r260323)
+++ stable/10/usr.sbin/mfiutil/mfi_show.c	Sun Jan  5 17:29:53 2014	(r260324)
@@ -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) {



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201401051729.s05HTrR8089905>