]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
authorhollisb <hollisb@localhost>
Fri, 4 Nov 2005 03:18:12 +0000 (03:18 +0000)
committerhollisb <hollisb@localhost>
Fri, 4 Nov 2005 03:18:12 +0000 (03:18 +0000)
* kern/powerpc/ieee1275/openfw.c (grub_ieee1275_get_devname): Use
`grub_strndup' to drop device arguments. Replace unnecessary
`grub_strndup' with `grub_strdup'.

ChangeLog
kern/powerpc/ieee1275/openfw.c

index e6f78a3d6cf9f43136c79e6df79d016e16b148e7..1df87459e018f1f3d6e04402c0effab6cf7e0ba7 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+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
index 115af97621875c63b35fa6adc25668cacc77356c..39195ce16663b5ab9bf48513e83f449709ffc9b8 100644 (file)
@@ -231,7 +231,7 @@ grub_ieee1275_get_devname (const char *path)
       /* 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;
        }
 
@@ -245,7 +245,7 @@ grub_ieee1275_get_devname (const char *path)
   grub_devalias_iterate (match_alias);
 
   if (! newpath)
-    newpath = grub_strdup (path);
+    newpath = grub_strndup (path, pathlen);
 
   return newpath;
 }