Commit 29c1c8f7 authored by M. Levinson's avatar M. Levinson Committed by Diego Biurrun

css: Fix typo in memcpy() size calculation

The sizeof argument is an array, not a pointer, dereferencing it is wrong.
Signed-off-by: 's avatarDiego Biurrun <diego@biurrun.de>
parent 4fb069e3
......@@ -205,7 +205,7 @@ int dvdcss_title ( dvdcss_t dvdcss, int i_block )
&& 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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment