Small fix of previous change

release-1.5.4.branch
Thomas Schmitt 9 years ago
parent 44f475a4ef
commit fea649835c

@ -793,7 +793,7 @@ int make_really_unique_name(IsoDir *parent, char **name, char **unique_name,
if (first > 0)
memcpy(*unique_name, *name, first);
memset(*unique_name + first, '_', 8 - len);
if (len > 0)
if (len > first)
memcpy(*unique_name + (8 - (len - first)), *name + first,
len - first);
len = 8;

Loading…
Cancel
Save