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.
This commit is contained in:
parent
f4c62ed6ed
commit
ad60dd3652
2 changed files with 7 additions and 2 deletions
|
@ -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>
|
2009-11-11 Felix Zielcke <fzielcke@z-51.de>
|
||||||
|
|
||||||
* util/grub-probe.c (probe): Abort with an error if file can't be
|
* util/grub-probe.c (probe): Abort with an error if file can't be
|
||||||
|
|
|
@ -522,9 +522,9 @@ make_system_path_relative_to_its_root (const char *path)
|
||||||
free (buf2);
|
free (buf2);
|
||||||
|
|
||||||
len = strlen (buf3);
|
len = strlen (buf3);
|
||||||
while (buf2[len - 1] == '/' && len > 1)
|
while (buf3[len - 1] == '/' && len > 1)
|
||||||
{
|
{
|
||||||
buf2[len - 1] = '\0';
|
buf3[len - 1] = '\0';
|
||||||
len--;
|
len--;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue