From: Toni Wilen Date: Fri, 23 Nov 2012 14:50:05 +0000 (+0200) Subject: joliet file name marker fix X-Git-Tag: 2500~3 X-Git-Url: https://git.unchartedbackwaters.co.uk/w/?a=commitdiff_plain;h=4eb76ea7f1ed954a8d457e09a9910b22c69fd6f6;p=francis%2Fwinuae.git joliet file name marker fix --- diff --git a/isofs.cpp b/isofs.cpp index 7ce9beb5..7478ee06 100644 --- a/isofs.cpp +++ b/isofs.cpp @@ -1513,7 +1513,7 @@ static TCHAR *get_joliet_filename(struct iso_directory_record * de, struct inode if ((len > 2) && (out[len-2] == ';') && (out[len-1] == '1')) { len -= 2; - out[len + 1] = 0; + out[len] = 0; } /* @@ -1521,8 +1521,8 @@ static TCHAR *get_joliet_filename(struct iso_directory_record * de, struct inode * so neither do we */ while (len >= 2 && (out[len-1] == '.')) { - out[len] = 0; len--; + out[len] = 0; } return out;