shithub: libdvdcss

Download patch

ref: 26a57f6d2bd5dc363850265f78371d05e1c554c3
parent: 46558053bb3a77808b709cc932dd7e1acbb93671
author: Diego Biurrun <diego@biurrun.de>
date: Wed Oct 26 00:59:23 EDT 2011

Win32: consistently use snprintf() instead of _snprintf()

Both functions are available on Cygwin and MinGW nowadays so there is
no need to be inconsistent anymore.





--- a/src/device.c
+++ b/src/device.c
@@ -511,7 +511,7 @@
 static int win2k_open ( dvdcss_t dvdcss, char const *psz_device )
 {
     char psz_dvd[7];
-    _snprintf( psz_dvd, 7, "\\\\.\\%c:", psz_device[0] );
+    snprintf( psz_dvd, 7, "\\\\.\\%c:", psz_device[0] );
 
     /* To work around an M$ bug in IOCTL_DVD_READ_STRUCTURE, we need read
      * _and_ write access to the device (so we can make SCSI Pass Through