From: Felix Zielcke Date: Fri, 13 Nov 2009 22:08:55 +0000 (+0100) Subject: 2009-11-13 Felix Zielcke X-Git-Tag: 1.98~370^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ad60dd3652b56b9dcf4aac738e69487748ecaffd;p=thirdparty%2Fgrub.git 2009-11-13 Felix Zielcke * util/misc.c (make_system_path_relative_to_its_root): Fix access to a wrong variable. --- diff --git a/ChangeLog.mkrelpath b/ChangeLog.mkrelpath index d24262db5..75881f219 100644 --- a/ChangeLog.mkrelpath +++ b/ChangeLog.mkrelpath @@ -1,3 +1,8 @@ +2009-11-13 Felix Zielcke + + * util/misc.c (make_system_path_relative_to_its_root): Fix access + to a wrong variable. + 2009-11-11 Felix Zielcke * util/grub-probe.c (probe): Abort with an error if file can't be diff --git a/util/misc.c b/util/misc.c index e4d68e33f..979c363aa 100644 --- a/util/misc.c +++ b/util/misc.c @@ -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--; }