Skip to content

Commit

Permalink
[libdvdcss] Copy value psz_cache to dvdcss->psz_cachefile if it exists.
Browse files Browse the repository at this point in the history
  • Loading branch information
afedchin authored and Voyager1 committed Feb 15, 2016
1 parent d113ac1 commit 2f12236
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/libdvdcss.c
Expand Up @@ -274,6 +274,11 @@ static int set_cache_directory( dvdcss_t dvdcss )
}
#endif /* ! defined( _WIN32 ) */
}
else
{
snprintf( dvdcss->psz_cachefile, PATH_MAX, "%s", psz_cache );
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. */
Expand Down

0 comments on commit 2f12236

Please sign in to comment.