Allocate correct size

This commit is contained in:
Vladimir 'phcoder' Serbinenko 2009-12-27 22:34:49 +01:00
parent 1975ecdc59
commit f45e1a9fb7

View file

@ -167,7 +167,7 @@ read_terminal_list (void)
return; return;
} }
filename = grub_malloc (grub_strlen (prefix) + sizeof ("/crypto.lst")); filename = grub_malloc (grub_strlen (prefix) + sizeof ("/terminal.lst"));
if (!filename) if (!filename)
{ {
grub_errno = GRUB_ERR_NONE; grub_errno = GRUB_ERR_NONE;