[libdvdcss-devel] [PATCH 1/2] win32: consistently use snprintf()	instead of _snprintf().
    Diego Biurrun 
    diego at biurrun.de
       
    Sat Oct 22 16:54:24 CEST 2011
    
    
  
Both functions are available on Cygwin and MinGW nowadays so there is
no need to be inconsistent anymore.
---
 src/device.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/device.c b/src/device.c
index 98507f4..46a936a 100644
--- a/src/device.c
+++ b/src/device.c
@@ -511,7 +511,7 @@ static int libc_open ( dvdcss_t dvdcss, char const *psz_device )
 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
-- 
1.7.3.4
    
    
More information about the libdvdcss-devel
mailing list