diff options
| author | stanley lieber <stanley.lieber@gmail.com> | 2011-09-23 01:36:44 -0500 |
|---|---|---|
| committer | stanley lieber <stanley.lieber@gmail.com> | 2011-09-23 01:36:44 -0500 |
| commit | 02287a23f0e71b1d524c853adc0ea24671522da2 (patch) | |
| tree | 3b6690159b2aa37ae246b10837fb52f523745995 | |
| parent | ec70fc64ad6e5072f83ce672f20ae200055fe0eb (diff) | |
| download | plan9front-02287a23f0e71b1d524c853adc0ea24671522da2.tar.xz | |
mothra: do not crash on an invalid j command
| -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"); |
