From fea649835cfef3763b870b1965fd84fea7c204b9 Mon Sep 17 00:00:00 2001 From: Thomas Schmitt Date: Fri, 3 Jan 2014 20:00:04 +0100 Subject: [PATCH] Small fix of previous change --- libisofs/tree.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libisofs/tree.c b/libisofs/tree.c index 5798850..74a2e40 100644 --- a/libisofs/tree.c +++ b/libisofs/tree.c @@ -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;