Author: bapt
Date: Wed Sep 12 11:41:03 2012
New Revision: 240391
URL: http://svn.freebsd.org/changeset/base/240391

Log:
  Fix IEC / SI binary prefixes (Ki, Mi, Gi, etc) production by 
humanize_number(3)
  
  PR:           bin/171487
  Submitted by: matthew
  MFC after:    1 week

Modified:
  head/lib/libutil/humanize_number.c

Modified: head/lib/libutil/humanize_number.c
==============================================================================
--- head/lib/libutil/humanize_number.c  Wed Sep 12 10:53:08 2012        
(r240390)
+++ head/lib/libutil/humanize_number.c  Wed Sep 12 11:41:03 2012        
(r240391)
@@ -76,7 +76,7 @@ humanize_number(char *buf, size_t len, i
                if (flags & HN_B)
                        prefixes = "B\0\0Ki\0Mi\0Gi\0Ti\0Pi\0Ei";
                else
-                       prefixes = "\0\0Ki\0Mi\0Gi\0Ti\0Pi\0Ei";
+                       prefixes = "\0\0\0Ki\0Mi\0Gi\0Ti\0Pi\0Ei";
        } else {
                baselen = 1;
                if (flags & HN_DIVISOR_1000)
_______________________________________________
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to