[libdvdcss-devel] [Git][videolan/libdvdcss][master] Fix key cache storage in ~/.dvdcss

Jean-Baptiste Kempf gitlab at videolan.org
Thu Nov 23 01:54:47 CET 2017


Jean-Baptiste Kempf pushed to branch master at videolan / libdvdcss


Commits:
439f9615 by Jean-Baptiste Kempf at 2017-11-23T01:53:16+01:00
Fix key cache storage in ~/.dvdcss

See VLC #16347

- - - - -


1 changed file:

- src/libdvdcss.c


Changes:

=====================================
src/libdvdcss.c
=====================================
--- a/src/libdvdcss.c
+++ b/src/libdvdcss.c
@@ -433,8 +433,9 @@ static void create_cache_subdir( dvdcss_t dvdcss )
     }
 
     /* We have a disc name or ID, we can create the cache subdirectory. */
-    i = sprintf( dvdcss->psz_cachefile, "%s/%s-%s-%s",
-                 dvdcss->psz_cachefile, psz_title, psz_serial, psz_key );
+    i = strlen( dvdcss->psz_cachefile );
+    i += sprintf( dvdcss->psz_cachefile + i, "/%s-%s-%s",
+                  psz_title, psz_serial, psz_key );
     i_ret = exists_or_mkdir( dvdcss->psz_cachefile, 0755 );
     if( i_ret < 0 && errno != EEXIST )
     {



View it on GitLab: https://code.videolan.org/videolan/libdvdcss/commit/439f9615b8fbbd06d06f7bfe9699c8255907a51f

---
View it on GitLab: https://code.videolan.org/videolan/libdvdcss/commit/439f9615b8fbbd06d06f7bfe9699c8255907a51f
You're receiving this email because of your account on code.videolan.org.


More information about the libdvdcss-devel mailing list