diff options
author | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2007-07-06 22:07:35 +0000 |
---|---|---|
committer | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2007-07-06 22:07:35 +0000 |
commit | 71385409830459000759d50d041fc04893238837 (patch) | |
tree | 7b4fb189974695a52e5bc6155eca8989c677191f | |
parent | fe1f9712f31d661d7f09df0bce287231c7551a29 (diff) | |
download | mpv-71385409830459000759d50d041fc04893238837.tar.bz2 mpv-71385409830459000759d50d041fc04893238837.tar.xz |
Fix CSS format strings, they could print more than two digits for
"negative" numbers.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23727 b3059339-0415-0410-9bf9-f77b7e298cf2
-rw-r--r-- | libdvdcss/libdvdcss.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libdvdcss/libdvdcss.c b/libdvdcss/libdvdcss.c index c07c1b61b5..dcc777de70 100644 --- a/libdvdcss/libdvdcss.c +++ b/libdvdcss/libdvdcss.c @@ -472,7 +472,7 @@ LIBDVDCSS_EXPORT dvdcss_t dvdcss_open ( char *psz_target ) { char psz_tmp[16 + 1]; sprintf( psz_tmp, - "%.2x%.2x%.2x%.2x%.2x%.2x%.2x%.2x", + "%.2"PRIx8"%.2"PRIx8"%.2"PRIx8"%.2"PRIx8"%.2"PRIx8"%.2"PRIx8"%.2"PRIx8"%.2"PRIx8"", psz_serial[0], psz_serial[1], psz_serial[2], psz_serial[3], psz_serial[4], psz_serial[5], psz_serial[6], psz_serial[7] ); @@ -488,7 +488,7 @@ LIBDVDCSS_EXPORT dvdcss_t dvdcss_open ( char *psz_target ) psz_key[0] = '-'; for( i = 0; i < KEY_SIZE; i++ ) { - sprintf( &psz_key[1+i*2], "%.2x", dvdcss->css.p_disc_key[i] ); + sprintf( &psz_key[1+i*2], "%.2"PRIx8, dvdcss->css.p_disc_key[i] ); } psz_key[1 + KEY_SIZE * 2] = '\0'; } |