diff --git a/src/gui/channellist.cpp b/src/gui/channellist.cpp index 91c6a21f3..b154aa8b2 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 {