grub-install-common: Fix sizeof usage.
Found by: Coverity scan.
This commit is contained in:
parent
866f469683
commit
c3f5230597
1 changed files with 1 additions and 1 deletions
|
@ -238,7 +238,7 @@ grub_install_push_module (const char *val)
|
|||
if (modules.n_alloc < 16)
|
||||
modules.n_alloc = 16;
|
||||
modules.entries = xrealloc (modules.entries,
|
||||
modules.n_alloc * sizeof (modules.entries));
|
||||
modules.n_alloc * sizeof (*modules.entries));
|
||||
}
|
||||
modules.entries[modules.n_entries++] = xstrdup (val);
|
||||
modules.entries[modules.n_entries] = NULL;
|
||||
|
|
Loading…
Reference in a new issue