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:
Felix Zielcke 2009-11-13 23:08:55 +01:00
parent f4c62ed6ed
commit ad60dd3652
2 changed files with 7 additions and 2 deletions

View 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> 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

View file

@ -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--;
} }