diff --git a/src/uifc/uifcx.c b/src/uifc/uifcx.c index 52696cdde4dff1d52d3a55a873334645992fc5f4..f64862116e4b8422a02e222ff96e1e53c2484bdf 100644 --- a/src/uifc/uifcx.c +++ b/src/uifc/uifcx.c @@ -248,7 +248,7 @@ int ulist(int mode, int left, int top, int width, int *cur, int *bar truncsp(str); i=atoi(str); - if(i>0) { + if(i>0 && i<=opts) { *cur=--i; return(*cur); }