Commit 97133fb9 authored by rswindell's avatar rswindell
Browse files

Fixed ulist - allowing return of invalid option number.

parent 5a9be21a
......@@ -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);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment