shithub: libdvdcss

Download patch

ref: 02f6ff7dbba02695e244ab47e732f19d32c8071f
parent: 1a0bb73f345c8a6e652b4c04ef9ea80fb870d4ea
author: Christophe Massiot <massiot@videolan.org>
date: Wed Aug 31 15:07:00 EDT 2005

* src/device.c: Under Windows remove the trailing backslash.


--- a/src/device.c
+++ b/src/device.c
@@ -190,6 +190,9 @@
             continue;
         }
 
+        /* Remove trailing backslash */
+        psz_device[2] = '\0';
+
         /* FIXME: we want to differenciate between CD and DVD drives
          * using DeviceIoControl() */
         print_debug( dvdcss, "defaulting to drive `%s'", psz_device );