File file-5.22-strings.patch of Package file.7740

---
 src/file.h      |    4 ++--
 src/softmagic.c |    2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

--- src/file.h
+++ src/file.h	2017-03-17 13:26:02.616433749 +0000
@@ -132,11 +132,11 @@
 				   or directory */
 #define MAXDESC	64		/* max len of text description/MIME type */
 #define MAXMIME	80		/* max len of text MIME type */
-#define MAXstring 64		/* max len of "string" types */
+#define MAXstring 96		/* max len of "string" types */
 
 #define MAGICNO		0xF11E041C
 #define VERSIONNO	12
-#define FILE_MAGICSIZE	248
+#define FILE_MAGICSIZE	280
 
 #define	FILE_LOAD	0
 #define FILE_CHECK	1
--- src/softmagic.c
+++ src/softmagic.c	2017-02-07 23:27:32.000000000 +0000
@@ -518,7 +518,7 @@ mprint(struct magic_set *ms, struct magi
 			t = ms->offset + strlen(str);
 
 			if (*m->value.s == '\0')
-				str[strcspn(str, "\n")] = '\0';
+				str[strcspn(str, "\r\n")] = '\0';
 
 			if (m->str_flags & STRING_TRIM) {
 				char *last;
openSUSE Build Service is sponsored by