Commit 1ecbd379 authored by Diego Biurrun's avatar Diego Biurrun
Browse files

libdvdcss: Avoid a cast when comparing the return values of write() and strlen()

parent 3c3fb43d
......@@ -375,8 +375,8 @@ LIBDVDCSS_EXPORT dvdcss_t dvdcss_open ( char *psz_target )
i_fd = open( psz_tagfile, O_RDWR|O_CREAT, 0644 );
if( i_fd >= 0 )
{
size_t len = strlen(psz_tag);
if( write( i_fd, psz_tag, len ) < (long)len )
ssize_t len = strlen(psz_tag);
if( write( i_fd, psz_tag, len ) < len )
{
print_error( dvdcss,
"Error writing cache directory tag, continuing..\n" );
......
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