* kern/powerpc/ieee1275/openfw.c (grub_ieee1275_get_devname): Use
`grub_strndup' to drop device arguments. Replace unnecessary
`grub_strndup' with `grub_strdup'.
+2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
+
+ * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_get_devname): Use
+ `grub_strndup' to drop device arguments. Replace unnecessary
+ `grub_strndup' with `grub_strdup'.
+
2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
* kern/term.c (grub_cls): Do not call grub_cur_term->cls() if the
/* briQ firmware can change capitalization in /chosen/bootpath. */
if (! grub_strncasecmp (curalias->path, path, pathlen))
{
- newpath = grub_strndup (curalias->name, grub_strlen (curalias->name));
+ newpath = grub_strdup (curalias->name);
return 1;
}
grub_devalias_iterate (match_alias);
if (! newpath)
- newpath = grub_strdup (path);
+ newpath = grub_strndup (path, pathlen);
return newpath;
}