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:
parent
4d42b77f3f
commit
6555d655e2
2 changed files with 6 additions and 1 deletions
|
@ -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.
|
||||
|
|
|
@ -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 != ' ')
|
||||
|
|
Loading…
Reference in a new issue