]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
2009-11-13 Felix Zielcke <fzielcke@z-51.de>
authorFelix Zielcke <fzielcke@z-51.de>
Fri, 13 Nov 2009 22:08:55 +0000 (23:08 +0100)
committerFelix Zielcke <fzielcke@z-51.de>
Fri, 13 Nov 2009 22:08:55 +0000 (23:08 +0100)
* util/misc.c (make_system_path_relative_to_its_root): Fix access
to a wrong variable.

ChangeLog.mkrelpath
util/misc.c

index d24262db5bed45d2aa7277360d565c3a2d993c19..75881f219cd0f346348e13618f0ba171aa007b5e 100644 (file)
@@ -1,3 +1,8 @@
+2009-11-13  Felix Zielcke  <fzielcke@z-51.de>
+
+       * util/misc.c (make_system_path_relative_to_its_root): Fix access
+       to a wrong variable.
+
 2009-11-11  Felix Zielcke  <fzielcke@z-51.de>
 
        * util/grub-probe.c (probe): Abort with an error if file can't be
index e4d68e33fe098b5901b4d7688c50ce49743fa098..979c363aa720e78035715bff8ee62308901b4cf0 100644 (file)
@@ -522,9 +522,9 @@ make_system_path_relative_to_its_root (const char *path)
   free (buf2);
 
   len = strlen (buf3);
-  while (buf2[len - 1] == '/' && len > 1)
+  while (buf3[len - 1] == '/' && len > 1)
     {
-      buf2[len - 1] = '\0';
+      buf3[len - 1] = '\0';
       len--;
     }