Skip to content
Snippets Groups Projects
Commit 98c66a5b authored by Petri Hintukainen's avatar Petri Hintukainen
Browse files

Fix using DVDCSS_CACHE environment variable

parent b0385d98
No related branches found
No related tags found
No related merge requests found
......@@ -274,6 +274,11 @@ static int set_cache_directory( dvdcss_t dvdcss )
}
#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. */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment