diff options
| -rw-r--r-- | sys/src/cmd/mothra/mothra.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/src/cmd/mothra/mothra.c b/sys/src/cmd/mothra/mothra.c index dc2ef56ce..6d1f01558 100644 --- a/sys/src/cmd/mothra/mothra.c +++ b/sys/src/cmd/mothra/mothra.c @@ -541,7 +541,7 @@ void docmd(Panel *p, char *s){ break; case 'j': s=arg(s); - if(*s) + if(atoi(s) <= nwww()) geturl(www(atoi(s)-1)->url->fullname, GET, 0, 0, 0); else message("no url selected"); |
