OSDN Git Service

Fix max file name length.
authorrelan <relan@users.noreply.github.com>
Thu, 15 Dec 2016 05:14:30 +0000 (08:14 +0300)
committerrelan <relan@users.noreply.github.com>
Mon, 26 Dec 2016 07:00:38 +0000 (10:00 +0300)
In exFAT file name limit is 255 16-bit code units, not 256. That's
because name length field size is 1 byte.

libexfat/exfat.h

index 75cb6e6..795bf47 100644 (file)
@@ -34,7 +34,7 @@
 #include <sys/stat.h>
 #include <sys/types.h>
 
-#define EXFAT_NAME_MAX 256
+#define EXFAT_NAME_MAX 255
 #define EXFAT_ATTRIB_CONTIGUOUS 0x10000
 #define EXFAT_ATTRIB_CACHED     0x20000
 #define EXFAT_ATTRIB_DIRTY      0x40000