shithub: libdvdcss

Download patch

ref: 29c1c8f7db12f8a4c753a692d7eb38432757474b
parent: 4fb069e3ae35d03e2dc86fc9440abad24535429b
author: M. Levinson <mlevins@users.sourceforge.net>
date: Mon Nov 10 13:03:47 EST 2014

css: Fix typo in memcpy() size calculation

The sizeof argument is an array, not a pointer, dereferencing it is wrong.

Signed-off-by: Diego Biurrun <diego@biurrun.de>

--- a/src/css.c
+++ b/src/css.c
@@ -205,7 +205,7 @@
          && p_title->i_startlb == i_block )
     {
         /* We've already cracked this key, nothing to do */
-        memcpy( dvdcss->css.p_title_key, p_title->p_key, sizeof(*p_title->p_key) );
+        memcpy( dvdcss->css.p_title_key, p_title->p_key, sizeof(p_title->p_key) );
         return 0;
     }