Commit 98c66a5b authored by Petri Hintukainen's avatar Petri Hintukainen

Fix using DVDCSS_CACHE environment variable

parent b0385d98
......@@ -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. */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment