From: jeroen Date: Wed, 25 Oct 2006 20:41:43 +0000 (+0000) Subject: 2006-10-25 Jeroen Dekkers X-Git-Tag: 1.98~1904 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6555d655e2f2de2f7c642bb24aaefe6b70e649c0;p=thirdparty%2Fgrub.git 2006-10-25 Jeroen Dekkers * disk/lvm.c (grub_lvm_scan_device): Malloc sizeof(*lv) bytes instead of sizeof(lv). Patch by Michael Guntsche. --- diff --git a/ChangeLog b/ChangeLog index 2840e9bd6..2f36c4dfc 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2006-10-25 Jeroen Dekkers + + * disk/lvm.c (grub_lvm_scan_device): Malloc sizeof(*lv) bytes + instead of sizeof(lv). Patch by Michael Guntsche. + 2006-10-18 Jeroen Dekkers * disk/lvm.c: Rename VGS to VG_LIST. diff --git a/disk/lvm.c b/disk/lvm.c index 7b862c9a1..30a68881f 100644 --- a/disk/lvm.c +++ b/disk/lvm.c @@ -369,7 +369,7 @@ grub_lvm_scan_device (const char *name) if (*p == '}') break; - lv = grub_malloc (sizeof (lv)); + lv = grub_malloc (sizeof (*lv)); q = p; while (*q != ' ')