[libdvdcss-devel] [PATCH] fix sprintf format strings

Diego Biurrun diego at biurrun.de
Thu Aug 21 22:53:55 CEST 2008


Here is a patch that we have been using in MPlayer for a while.  Some
sprintf calls in libdvdcss.c are not using the correct format string for
the uint8_t type.  The Subversion log message is

Log:
Fix CSS format strings, they could print more than two digits for
"negative" numbers.

I have extended the patch to use inttypes.h instead of stdint.h in
common.h, which is needed for the PRIx8 conversion specifier.  This
might need some additional changes in the autoconf build system.

Diego
-------------- next part --------------
A non-text attachment was scrubbed...
Name: format_string.diff
Type: text/x-diff
Size: 1558 bytes
Desc: not available
Url : http://mailman.videolan.org/pipermail/libdvdcss-devel/attachments/20080821/7ba6c1ef/attachment.diff 


More information about the libdvdcss-devel mailing list