Skip to content

Commit

Permalink
Silence a compiling warning.
Browse files Browse the repository at this point in the history
  • Loading branch information
rofafor committed Jan 3, 2020
1 parent 876d0d9 commit f7369c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -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++ = ' ';
Expand Down

0 comments on commit f7369c9

Please sign in to comment.