CControlAPI::GetBouquetCGI fix segfault

Origin commit data
------------------
Commit: 733f7a5382
Author: Jacek Jendrzej <overx300@gmail.com>
Date: 2013-10-12 (Sat, 12 Oct 2013)
This commit is contained in:
Jacek Jendrzej
2013-10-12 22:01:17 +02:00
parent 19b809ffed
commit c0846d75a4

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;
}