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

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