mirror of
https://github.com/reactos/reactos.git
synced 2024-06-30 09:50:07 +00:00
[CDMAKE]: Remove potential trailing dir-separator characters at the end of the directory, in case e.g. we build up something like: "bootcd\\somefile.ext" in the boot/livecd.lst files (--> I want a directory "bootcd" and a file "somefile.ext", instead of the directory "bootcd\", otherwise the ISO becomes broken. Notice that when the path is "bootcd\somefile.ext the existing code worked ok. That's why I want to strip the remaining backslashes).
svn path=/trunk/; revision=66050
This commit is contained in:
parent
147616c9fc
commit
feb9cd80e4
|
@ -107,6 +107,11 @@ void normalize_dirname(char *filename)
|
|||
}
|
||||
}
|
||||
filename[tgt] = 0;
|
||||
|
||||
while (tgt && (filename[--tgt] == DIR_SEPARATOR_CHAR))
|
||||
{
|
||||
filename[tgt] = 0;
|
||||
}
|
||||
}
|
||||
|
||||
struct target_dir_entry *
|
||||
|
|
Loading…
Reference in a new issue