Silence a compiling warning.

This commit is contained in:
Rolf Ahrenberg 2020-01-03 23:32:27 +02:00
parent 876d0d954e
commit f7369c9578
1 changed files with 1 additions and 1 deletions

View File

@ -192,7 +192,7 @@ void cIptvPluginSetup::StoreFilters(const char *nameP, int *valuesP)
char *q = buffer;
for (int i = 0; i < SECTION_FILTER_TABLE_SIZE; ++i) {
char s[3];
if (valuesP[i] < 0)
if ((valuesP[i] < 0) || (valuesP[i] >= SECTION_FILTER_TABLE_SIZE))
break;
if (q > buffer)
*q++ = ' ';