From: <ga...@us...> - 2011-12-15 09:58:27
|
Revision: 5878 http://jnode.svn.sourceforge.net/jnode/?rev=5878&view=rev Author: galatnm Date: 2011-12-15 09:58:16 +0000 (Thu, 15 Dec 2011) Log Message: ----------- FS : HFS+ catalog key temporary fix to avoid record data shift. Modified Paths: -------------- trunk/fs/src/fs/org/jnode/fs/hfsplus/catalog/CatalogKey.java Modified: trunk/fs/src/fs/org/jnode/fs/hfsplus/catalog/CatalogKey.java =================================================================== --- trunk/fs/src/fs/org/jnode/fs/hfsplus/catalog/CatalogKey.java 2011-12-14 12:19:38 UTC (rev 5877) +++ trunk/fs/src/fs/org/jnode/fs/hfsplus/catalog/CatalogKey.java 2011-12-15 09:58:16 UTC (rev 5878) @@ -60,7 +60,8 @@ int currentOffset = offset; byte[] ck = new byte[2]; System.arraycopy(src, currentOffset, ck, 0, 2); - keyLength = BigEndian.getInt16(ck, 0); + //TODO Understand why the +2 is necessary + keyLength = BigEndian.getInt16(ck, 0) + 2; currentOffset += 2; ck = new byte[4]; System.arraycopy(src, currentOffset, ck, 0, 4); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |