Small fix of previous change

This commit is contained in:
Thomas Schmitt 2014-01-03 20:00:04 +01:00
parent 44f475a4ef
commit fea649835c

View File

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