]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
* grub-core/disk/lvm.c (grub_lvm_getvalue): Handle 64-bit values.
authorVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Mon, 25 Jun 2012 15:52:20 +0000 (17:52 +0200)
committerVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Mon, 25 Jun 2012 15:52:20 +0000 (17:52 +0200)
ChangeLog
grub-core/disk/lvm.c

index ca8b4abe06be6d58ac34e3601ac3864aaf4e1dd9..548680e9894932f87f48b06d540fb288627a997b 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2012-06-25  Vladimir Serbinenko  <phcoder@gmail.com>
+
+       * grub-core/disk/lvm.c (grub_lvm_getvalue): Handle 64-bit values.
+
 2012-06-25  Vladimir Serbinenko  <phcoder@gmail.com>
 
        * grub-core/fs/fat.c (grub_fat_iterate_dir_next): Don't stop on a space
index e0cf880cf2d871ae2d1f289db0d58f10c419dabc..508e94af0c0b50f2892dc2745b198a4c14efd114 100644 (file)
@@ -37,14 +37,14 @@ GRUB_MOD_LICENSE ("GPLv3+");
 /* Go the string STR and return the number after STR.  *P will point
    at the number.  In case STR is not found, *P will be NULL and the
    return value will be 0.  */
-static int
+static grub_uint64_t
 grub_lvm_getvalue (char **p, const char *str)
 {
   *p = grub_strstr (*p, str);
   if (! *p)
     return 0;
   *p += grub_strlen (str);
-  return grub_strtoul (*p, p, 10);
+  return grub_strtoull (*p, p, 10);
 }
 
 #if 0