src/gui/channellist.cpp fix possible segfault (heap-buffer-overflow)

Origin commit data
------------------
Branch: ni/coolstream
Commit: 597f10d920
Author: Jacek Jendrzej <overx300@gmail.com>
Date: 2016-01-04 (Mon, 04 Jan 2016)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
Jacek Jendrzej
2016-01-04 13:50:36 +01:00
parent a2d14f83e1
commit 72e442a51e

View File

@@ -1386,6 +1386,9 @@ int CChannelList::numericZap(int key)
CZapitChannel* CChannelList::getPrevNextChannel(int key, unsigned int &sl)
{
if(sl >= (*chanlist).size())
sl = (*chanlist).size()-1;
CZapitChannel* channel = (*chanlist)[sl];
int bsize = bouquetList->Bouquets.size();
int bactive = bouquetList->getActiveBouquetNumber();