diff --git a/src/gui/channellist.cpp b/src/gui/channellist.cpp index 1a28e4f9c..4a4089d77 100644 --- a/src/gui/channellist.cpp +++ b/src/gui/channellist.cpp @@ -1425,7 +1425,7 @@ int CChannelList::numericZap(int key) // do nothing } else if (CRCInput::isNumeric(msg)) { - if (pos == 4) { + if (pos == (int) maxchansize) { chn = 0; pos = 1; } else {