shithub: libdvdcss

Download patch

ref: 58355c7e8726444aea52b08958495ff43d58b8d5
parent: 5cb06542b1a0c88e585bb78dc00d0d31970e5833
author: Diego Elio Pettenò <flameeyes@flameeyes.eu>
date: Thu Feb 14 06:08:57 EST 2013

libdvdcss: use a static constant array instead of a variable to hold the cache sig.

--- a/src/libdvdcss.c
+++ b/src/libdvdcss.c
@@ -404,7 +404,8 @@
     /* If the cache is enabled, write the cache directory tag */
     if( psz_cache )
     {
-        char *psz_tag = "Signature: 8a477f597d28d172789f06886806bc55\r\n"
+        static const char psz_tag[] =
+            "Signature: 8a477f597d28d172789f06886806bc55\r\n"
             "# This file is a cache directory tag created by libdvdcss.\r\n"
             "# For information about cache directory tags, see:\r\n"
             "#   http://www.brynosaurus.com/cachedir/\r\n";