1 2 3 4 5 6 7 8 9 10
|
--- a/jp/gr/java_conf/dangan/util/lha/LhaHeader.java
+++ b/jp/gr/java_conf/dangan/util/lha/LhaHeader.java
@@ -919,6 +919,7 @@
this.HeaderLevel = HeaderData[ HeaderLevelIndex ] & 0xFF;
this.Path = new String( HeaderData, PathIndex, PathLength, encode ); //After Java 1.1 throw IndexOutOfBoundsException
this.Path = this.Path.replace( '\\', File.separatorChar );
+ this.Path = this.Path.split("\0")[0]; // Amiga LhA adds filenote to path after a null byte
if( CRCIndex + 2 <= HeaderSize ){
this.CRC = LittleEndian.readShort( HeaderData, CRCIndex ); //throw ArrayIndexOutOfBoundsException
|