Blame SOURCES/file-5.11-maxmime.patch

a2822c
commit 774f9f6653a90d83a8b5802e7dd210a45603e039
a2822c
Author: Christos Zoulas <christos@zoulas.com>
a2822c
Date:   Fri Jan 25 23:07:19 2013 +0000
a2822c
a2822c
    bump mime desc
a2822c
a2822c
diff --git a/src/file.h b/src/file.h
a2822c
index 8e139fc..4c03766 100644
a2822c
@@ -128,12 +128,13 @@
a2822c
 #endif
a2822c
 #define MAXMAGIS 8192		/* max entries in any one magic file
a2822c
 				   or directory */
a2822c
-#define MAXDESC	64		/* max leng of text description/MIME type */
a2822c
-#define MAXstring 64		/* max leng of "string" types */
a2822c
+#define MAXDESC	64		/* max len of text description/MIME type */
a2822c
+#define MAXMIME	80		/* max len of text MIME type */
a2822c
+#define MAXstring 64		/* max len of "string" types */
a2822c
 
a2822c
 #define MAGICNO		0xF11E041C
a2822c
-#define VERSIONNO	9
a2822c
-#define FILE_MAGICSIZE	232
a2822c
+#define VERSIONNO	10
a2822c
+#define FILE_MAGICSIZE	248
a2822c
 
a2822c
 #define	FILE_LOAD	0
a2822c
 #define FILE_CHECK	1
a2822c
@@ -300,9 +301,9 @@ struct magic {
a2822c
 	union VALUETYPE value;	/* either number or string */
a2822c
 	/* Words 17-32 */
a2822c
 	char desc[MAXDESC];	/* description */
a2822c
-	/* Words 33-48 */
a2822c
-	char mimetype[MAXDESC]; /* MIME type */
a2822c
-	/* Words 49-50 */
a2822c
+	/* Words 33-52 */
a2822c
+	char mimetype[MAXMIME]; /* MIME type */
a2822c
+	/* Words 53-54 */
a2822c
 	char apple[8];
a2822c
 };
a2822c