Blame SOURCES/httpd-2.4.37-mod-mime-magic-strdup.patch

10ea73
diff --git a/docs/conf/magic b/docs/conf/magic
10ea73
index 7c56119..bc891d9 100644
10ea73
--- a/docs/conf/magic
10ea73
+++ b/docs/conf/magic
10ea73
@@ -87,7 +87,7 @@
10ea73
 # Microsoft WAVE format (*.wav)
10ea73
 # [GRR 950115:  probably all of the shorts and longs should be leshort/lelong]
10ea73
 #					Microsoft RIFF
10ea73
-0	string		RIFF		audio/unknown
10ea73
+0	string		RIFF		
10ea73
 #					- WAVE format
10ea73
 >8	string		WAVE		audio/x-wav
10ea73
 # MPEG audio.
10ea73
--- a/modules/metadata/mod_mime_magic.c	2013/06/11 07:36:13	1491699
10ea73
+++ b/modules/metadata/mod_mime_magic.c	2013/06/11 07:41:40	1491700
10ea73
@@ -606,7 +606,7 @@
10ea73
     /* high overhead for 1 char - just hope they don't do this much */
10ea73
     str[0] = c;
10ea73
     str[1] = '\0';
10ea73
-    return magic_rsl_add(r, str);
10ea73
+    return magic_rsl_add(r, apr_pstrdup(r->pool, str));
10ea73
 }
10ea73
 
10ea73
 /* allocate and copy a contiguous string from a result string list */