[Mplayer-cvslog] CVS: 0_90/libmpdvdkit2 libdvdcss.c,1.10,1.11

Arpi of Ize arpi at mplayerhq.hu
Sat Mar 22 17:27:16 CET 2003


Update of /cvsroot/mplayer/0_90/libmpdvdkit2
In directory mail:/var/tmp.root/cvs-serv24825

Modified Files:
	libdvdcss.c 
Log Message:
NetBSD's mkdir(2) doesn't like trailing "/" on its argument.  Hence
this patch, which should work regardless of platform.
by Christopher Richards <richards at CS.Princeton.EDU> (@libdvdcss-devel)


Index: libdvdcss.c
===================================================================
RCS file: /cvsroot/mplayer/0_90/libmpdvdkit2/libdvdcss.c,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -r1.10 -r1.11
--- libdvdcss.c	22 Mar 2003 15:45:13 -0000	1.10
+++ libdvdcss.c	22 Mar 2003 16:27:14 -0000	1.11
@@ -396,7 +396,7 @@
             goto nocache;
         }
 
-        i += sprintf( dvdcss->psz_cachefile + i, "/%s/", psz_data );
+        i += sprintf( dvdcss->psz_cachefile + i, "/%s", psz_data );
 #if !defined( WIN32 ) || defined( SYS_CYGWIN )
         i_ret = mkdir( dvdcss->psz_cachefile, 0755 );
 #else
@@ -408,6 +408,7 @@
             dvdcss->psz_cachefile[0] = '\0';
             goto nocache;
         }
+        i += sprintf( dvdcss->psz_cachefile + i, "/");
 
         /* Pointer to the filename we will use. */
         dvdcss->psz_block = dvdcss->psz_cachefile + i;



More information about the MPlayer-cvslog mailing list