2006-10-25 Jeroen Dekkers <jeroen@dekkers.cx>

* disk/lvm.c (grub_lvm_scan_device): Malloc sizeof(*lv) bytes
	instead of sizeof(lv). Patch by Michael Guntsche.
This commit is contained in:
jeroen 2006-10-25 20:41:43 +00:00
parent 4d42b77f3f
commit 6555d655e2
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2006-10-25 Jeroen Dekkers <jeroen@dekkers.cx>
* disk/lvm.c (grub_lvm_scan_device): Malloc sizeof(*lv) bytes
instead of sizeof(lv). Patch by Michael Guntsche.
2006-10-18 Jeroen Dekkers <jeroen@dekkers.cx>
* disk/lvm.c: Rename VGS to VG_LIST.

View file

@ -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 != ' ')