2010-01-31 Vladimir Serbinenko <phcoder@gmail.com>

* disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Fix off-by-one error.
This commit is contained in:
Vladimir 'phcoder' Serbinenko 2010-01-31 11:11:03 +01:00
parent 61e89d9db6
commit 3b205d4ddf
2 changed files with 5 additions and 1 deletions

View file

@ -1,3 +1,7 @@
2010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
* disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Fix off-by-one error.
2010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
* font/font.c (find_glyph): Check that bmp_idx is available before

View file

@ -118,7 +118,7 @@ grub_ofdisk_iterate (int (*hook) (const char *name))
static char *
compute_dev_path (const char *name)
{
char *devpath = grub_malloc (grub_strlen (name) + 2);
char *devpath = grub_malloc (grub_strlen (name) + 3);
char *p, c;
if (!devpath)