]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
lib/strutils: fix typos in huge size suffixes
authorKarel Zak <kzak@redhat.com>
Mon, 3 Apr 2017 10:52:53 +0000 (12:52 +0200)
committerKarel Zak <kzak@redhat.com>
Mon, 3 Apr 2017 10:52:53 +0000 (12:52 +0200)
Signed-off-by: Karel Zak <kzak@redhat.com>
lib/strutils.c

index 74c850bce7b1d64e9021dea01e7b7c53c54fe586..45127b5a207b582efe47e05a253ba12ab7b19c53 100644 (file)
@@ -60,8 +60,8 @@ int parse_size(const char *str, uintmax_t *res, int *power)
        uintmax_t x, frac = 0;
        int base = 1024, rc = 0, pwr = 0, frac_zeros = 0;
 
-       static const char *suf  = "KMGTPEYZ";
-       static const char *suf2 = "kmgtpeyz";
+       static const char *suf  = "KMGTPEZY";
+       static const char *suf2 = "kmgtpezy";
        const char *sp;
 
        *res = 0;
@@ -516,7 +516,7 @@ void xstrmode(mode_t mode, char *str)
 }
 
 /*
- * returns exponent (2^x=n) in range KiB..PiB
+ * returns exponent (2^x=n) in range KiB..EiB (2^10..2^60)
  */
 static int get_exp(uint64_t n)
 {