[libdvdcss-devel] [Git][videolan/libdvdcss][master] Fix key cache storage in ~/.dvdcss
Jean-Baptiste Kempf <[email protected]> Thu, 23 Nov 2017 01:54:47 +0100
| Newsgroups | gmane.comp.video.videolan.libdvdcss,gmane.comp.video.videolan.libdvdcss.devel |
|---|---|
| Message-ID | <[email protected]> |
--===============1882462086162104844==
Content-Type: multipart/alternative;
boundary="--==_mimepart_5a161c578a7d2_2aa3fbf11ae03d43909da";
charset=UTF-8
Content-Transfer-Encoding: 7bit
----==_mimepart_5a161c578a7d2_2aa3fbf11ae03d43909da
Content-Type: text/plain;
charset=UTF-8
Content-Transfer-Encoding: 7bit
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.
----==_mimepart_5a161c578a7d2_2aa3fbf11ae03d43909da--
--===============1882462086162104844==
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: base64
Content-Disposition: inline
X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KbGliZHZkY3Nz
LWRldmVsIG1haWxpbmcgbGlzdApsaWJkdmRjc3MtZGV2ZWxAdmlkZW9sYW4ub3JnCmh0dHBzOi8v
bWFpbG1hbi52aWRlb2xhbi5vcmcvbGlzdGluZm8vbGliZHZkY3NzLWRldmVsCg==
--===============1882462086162104844==--