ref: 98c66a5b51db1e7a3a056deaafcb9a76d09afbeb
parent: b0385d98a63dcda3b555b9a4cfd0c70adf70b818
author: Petri Hintukainen <[email protected]>
date: Fri Mar 11 07:00:05 EST 2016
Fix using DVDCSS_CACHE environment variable
--- a/src/libdvdcss.c
+++ b/src/libdvdcss.c
@@ -274,6 +274,11 @@
}
#endif /* ! defined( _WIN32 ) */
}
+ else
+ {
+ strncpy( dvdcss->psz_cachefile, psz_cache, PATH_MAX );
+ dvdcss->psz_cachefile[PATH_MAX - 1] = '\0';
+ }
/* Check that there is enough space for the cache directory path and the
* block filename. The +1s are path separators. */