Skip to content
Snippets Groups Projects
Commit 97133fb9 authored by rswindell's avatar rswindell
Browse files

Fixed ulist - allowing return of invalid option number.

parent 5a9be21a
Branches
Tags
No related merge requests found
......@@ -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);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment