Commit 040eab45 authored by Olivier Aubert's avatar Olivier Aubert

svg.c: check fread return value

parent 39a529ac
......@@ -206,7 +206,10 @@ static char *svg_GetTemplate( vlc_object_t *p_this )
return NULL;
}
memset( psz_template, 0, s.st_size + 1 );
fread( psz_template, s.st_size, 1, file );
if(! fread( psz_template, s.st_size, 1, file ) )
{
msg_Dbg( p_this, "No data read from template." );
}
}
fclose( file );
}
......
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