Blob Blame History Raw
--- a/docs/conf/magic	2019/07/05 11:22:46	1862603
+++ b/docs/conf/magic	2019/07/05 11:26:12	1862604
@@ -87,7 +87,7 @@
 # Microsoft WAVE format (*.wav)
 # [GRR 950115:  probably all of the shorts and longs should be leshort/lelong]
 #					Microsoft RIFF
-0	string		RIFF		audio/unknown
+0	string		RIFF		
 #					- WAVE format
 >8	string		WAVE		audio/x-wav
 # MPEG audio.
--- a/modules/metadata/mod_mime_magic.c	2019/07/05 11:22:46	1862603
+++ b/modules/metadata/mod_mime_magic.c	2019/07/05 11:26:12	1862604
@@ -606,7 +606,7 @@
     /* high overhead for 1 char - just hope they don't do this much */
     str[0] = c;
     str[1] = '\0';
-    return magic_rsl_add(r, str);
+    return magic_rsl_add(r, apr_pstrdup(r->pool, str));
 }
 
 /* allocate and copy a contiguous string from a result string list */