Commit a0f00ca3 authored by Sam Hocevar's avatar Sam Hocevar
Browse files

Fix a potential format string crash.

parent a898069b
......@@ -420,7 +420,6 @@ LIBDVDCSS_EXPORT dvdcss_t dvdcss_open ( char *psz_target )
if( psz_cache )
{
uint8_t p_sector[DVDCSS_BLOCK_SIZE];
char psz_debug[PATH_MAX + 30];
char psz_key[1 + KEY_SIZE * 2 + 1];
char *psz_title;
uint8_t *psz_serial;
......@@ -548,9 +547,8 @@ LIBDVDCSS_EXPORT dvdcss_t dvdcss_open ( char *psz_target )
/* Pointer to the filename we will use. */
dvdcss->psz_block = dvdcss->psz_cachefile + i;
sprintf( psz_debug, "using CSS key cache dir: %s",
dvdcss->psz_cachefile );
print_debug( dvdcss, psz_debug );
print_debug( dvdcss, "using CSS key cache dir: %s",
dvdcss->psz_cachefile );
}
nocache:
......
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