+2009-07-10 Bean <bean123ch@gmail.com>
+2009-07-10 Robert Millan <rmh.grub@aybabtu.com>
+
+ * kern/ieee1275/openfw.c (grub_children_iterate)
+ (grub_devalias_iterate): Fix size evaluation for property or path
+ strings, which was broken since r2132.
+
2009-07-07 Pavel Roskin <proski@gnu.org>
* commands/search.c (search_file): Merge into ...
grub_ssize_t actual;
if (grub_ieee1275_get_property (child, "device_type", childtype,
- sizeof childtype, &actual))
+ IEEE1275_MAX_PROP_LEN, &actual))
continue;
- if (grub_ieee1275_package_to_path (child, childpath, sizeof childpath,
- &actual))
+ if (grub_ieee1275_package_to_path (child, childpath,
+ IEEE1275_MAX_PATH_LEN, &actual))
continue;
if (grub_ieee1275_get_property (child, "name", childname,
- sizeof childname, &actual))
+ IEEE1275_MAX_PATH_LEN, &actual))
continue;
grub_sprintf (fullname, "%s/%s", devpath, childname);
}
if (grub_ieee1275_get_property (dev, "device_type", devtype,
- sizeof devtype, &actual))
+ IEEE1275_MAX_PROP_LEN, &actual))
{
/* NAND device don't have device_type property. */
devtype[0] = 0;