CControlAPI::GetBouquetCGI fix segfault

Origin commit data
------------------
Branch: ni/coolstream
Commit: 733f7a5382
Author: Jacek Jendrzej <overx300@gmail.com>
Date: 2013-10-12 (Sat, 12 Oct 2013)


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

------------------
This commit was generated by Migit
This commit is contained in:
Jacek Jendrzej
2013-10-12 22:01:17 +02:00
parent 345419d01f
commit 6323734197

View File

@@ -966,6 +966,9 @@ void CControlAPI::GetBouquetCGI(CyhookHandler *hh) {
BouquetNr = atoi(hh->ParamList["bouquet"].c_str());
if (BouquetNr > 0)
BouquetNr--;
if((BouquetNr > 0) && (BouquetNr >= bsize))
BouquetNr = bsize-1;
startBouquet = BouquetNr;
bsize = BouquetNr+1;
}