Fix crash on some DVDs
commitfd11b253b9d1e6dea4c7d5e818d35ad291e7545e
authoriive <iive@b3059339-0415-0410-9bf9-f77b7e298cf2>
Fri, 6 Jul 2007 23:22:51 +0000 (6 23:22 +0000)
committeriive <iive@b3059339-0415-0410-9bf9-f77b7e298cf2>
Fri, 6 Jul 2007 23:22:51 +0000 (6 23:22 +0000)
treed9b491cc230a26af2fdd84610edb48dd246e2337
parent71385409830459000759d50d041fc04893238837
Fix crash on some DVDs
sprintf(tmp,"%.02x",(char)0xef); would print "ffffffef" instead of "ef",
in this case this leads to local array buffer overflow and hard to trace stack corruption.
The quick, easy & durty solution is to use (unsigned char) or (uint8_t)
Fixes Bugzilla 860 & 845

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23728 b3059339-0415-0410-9bf9-f77b7e298cf2
libdvdcss/libdvdcss.c