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
|
@ -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…
Add table
Add a link
Reference in a new issue