Commit 396a1e89 authored by Rémi Duraffort's avatar Rémi Duraffort

dvb-scan: fix potential buffer overflow

parent f74724b7
...@@ -308,7 +308,7 @@ static int ScanDvbSNextFast( scan_t *p_scan, scan_configuration_t *p_cfg, double ...@@ -308,7 +308,7 @@ static int ScanDvbSNextFast( scan_t *p_scan, scan_configuration_t *p_cfg, double
int res; int res;
do do
{ {
if ( ( res = fscanf( f, "%c %d %c %d %s\n", if ( ( res = fscanf( f, "%c %d %c %d %2s\n",
&type, &type,
&p_transponders[*pi_count].i_frequency, &p_transponders[*pi_count].i_frequency,
&p_transponders[*pi_count].c_polarization, &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