mirror of
https://gitlab.com/mbunkus/mkvtoolnix.git
synced 2024-12-24 11:54:01 +00:00
Attachment names were not stripped of their path components on Windows.
This commit is contained in:
parent
7496acf43e
commit
47b4dec50d
@ -1,5 +1,10 @@
|
||||
2003-09-19 Moritz Bunkus <moritz@bunkus.org>
|
||||
|
||||
* mkvmerge: bugfix: If attachments were given with path components
|
||||
then the path component wasn't discarded for the attachment's
|
||||
description on Windows (normally only the file name should be used
|
||||
as the attachment's name).
|
||||
|
||||
* mmg: Fixed wrong order of the options --chapters,
|
||||
--chapter-language and --chapter-charset.
|
||||
|
||||
|
@ -891,9 +891,9 @@ static void render_attachments(IOCallback *out) {
|
||||
attch->mime_type;
|
||||
|
||||
name = &attch->name[strlen(attch->name) - 1];
|
||||
while ((name != attch->name) && (*name != '/'))
|
||||
while ((name != attch->name) && (*name != PATHSEP))
|
||||
name--;
|
||||
if (*name == '/')
|
||||
if (*name == PATHSEP)
|
||||
name++;
|
||||
if (*name == 0)
|
||||
die("Internal error: *name == 0 on %d.", __LINE__);
|
||||
|
Loading…
Reference in New Issue
Block a user