[libdvdcss-devel] css: Fix typo in memcpy() size calculation
[email protected] (M. Levinson) Tue, 11 Nov 2014 14:03:42 +0100 (CET)
| Newsgroups | gmane.comp.video.videolan.libdvdcss,gmane.comp.video.videolan.libdvdcss.devel |
|---|---|
| Message-ID | <[email protected]> |
libdvdcss | branch: master | M. Levinson <[email protected]> | Mon Nov 10 18:03:47 2014 -0500| [29c1c8f7db12f8a4c753a692d7eb38432757474b] | committer: 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: Diego Biurrun <[email protected]> > http://git.videolan.org/gitweb.cgi/libdvdcss.git/?a=commit;h=29c1c8f7db12f8a4c753a692d7eb38432757474b --- src/css.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/css.c b/src/css.c index f986424..c6cd481 100644 --- a/src/css.c +++ b/src/css.c @@ -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; } _______________________________________________ libdvdcss-devel mailing list [email protected] https://mailman.videolan.org/listinfo/libdvdcss-devel