Discussion:
[libdvdcss-devel] libdvdcss: use a static constant array instead of a variable to hold the cache sig.
Diego Elio Pettenò
2013-02-14 20:13:50 UTC
Permalink
libdvdcss | branch: master | Diego Elio Pettenò <***@flameeyes.eu> | Thu Feb 14 11:08:57 2013 -0800| [58355c7e8726444aea52b08958495ff43d58b8d5] | committer: Diego Elio Pettenò

libdvdcss: use a static constant array instead of a variable to hold the cache sig.
http://git.videolan.org/gitweb.cgi/libdvdcss.git/?a=commit;h=58355c7e8726444aea52b08958495ff43d58b8d5
---

src/libdvdcss.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/libdvdcss.c b/src/libdvdcss.c
index 6d2ecc8..961f072 100644
--- a/src/libdvdcss.c
+++ b/src/libdvdcss.c
@@ -404,7 +404,8 @@ LIBDVDCSS_EXPORT dvdcss_t dvdcss_open ( char *psz_target )
/* 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";

Loading...