Commit 2752db79 authored by Rémi Duraffort's avatar Rémi Duraffort Committed by Felix Paul Kühne

dvb-scan: fix potential buffer overflow

(cherry picked from commit 396a1e89)
Signed-off-by: default avatarFelix Paul Kühne <fkuehne@videolan.org>
parent 4cfc4e98
......@@ -308,7 +308,7 @@ static int ScanDvbSNextFast( scan_t *p_scan, scan_configuration_t *p_cfg, double
int res;
do
{
if ( ( res = fscanf( f, "%c %d %c %d %s\n",
if ( ( res = fscanf( f, "%c %d %c %d %2s\n",
&type,
&p_transponders[*pi_count].i_frequency,
&p_transponders[*pi_count].c_polarization,
......
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