]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
2010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
authorVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Sun, 31 Jan 2010 10:11:03 +0000 (11:11 +0100)
committerVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Sun, 31 Jan 2010 10:11:03 +0000 (11:11 +0100)
* disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Fix off-by-one error.

ChangeLog
disk/ieee1275/ofdisk.c

index eced79d5995dc5b29dba4e6497d9fc3b769a25ff..4598e1b74c9c3a251e017114808c8b11a8f351a2 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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
index c8c4d1a4e20d2bd4238a56a39370ee710fd7aeac..051ece0b9abc25b1bab0a9afd46449ef1269fe06 100644 (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)