[MPlayer-cvslog] r34266 - trunk/libdvdcss/device.c

diego subversion at mplayerhq.hu
Wed Oct 26 19:02:07 CEST 2011


Author: diego
Date: Wed Oct 26 19:02:07 2011
New Revision: 34266

Log:
libdvdcss: consistently use snprintf() instead of _snprintf()

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

This was committed to the libdvdcss Subversion repository as revision 242.

Modified:
   trunk/libdvdcss/device.c

Modified: trunk/libdvdcss/device.c
==============================================================================
--- trunk/libdvdcss/device.c	Wed Oct 26 17:52:06 2011	(r34265)
+++ trunk/libdvdcss/device.c	Wed Oct 26 19:02:07 2011	(r34266)
@@ -511,7 +511,7 @@ static int libc_open ( dvdcss_t dvdcss, 
 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


More information about the MPlayer-cvslog mailing list