diff options
| author | stanley lieber <stanley.lieber@gmail.com> | 2011-09-23 00:52:47 -0500 |
|---|---|---|
| committer | stanley lieber <stanley.lieber@gmail.com> | 2011-09-23 00:52:47 -0500 |
| commit | ec70fc64ad6e5072f83ce672f20ae200055fe0eb (patch) | |
| tree | 11a81b7d9ecd847dff4f5543edde74ad27d9c322 | |
| parent | 93ea257aa3487ed5cbfff14cf281a9850cc688dc (diff) | |
| download | plan9front-ec70fc64ad6e5072f83ce672f20ae200055fe0eb.tar.xz | |
mothra: don't use isdigit()
| -rw-r--r-- | sys/src/cmd/mothra/mothra.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/src/cmd/mothra/mothra.c b/sys/src/cmd/mothra/mothra.c index 92f4f0ef4..dc2ef56ce 100644 --- a/sys/src/cmd/mothra/mothra.c +++ b/sys/src/cmd/mothra/mothra.c @@ -3,7 +3,6 @@ */ #include <u.h> #include <libc.h> -#include <ctype.h> #include <draw.h> #include <event.h> #include <keyboard.h> @@ -542,7 +541,7 @@ void docmd(Panel *p, char *s){ break; case 'j': s=arg(s); - if(isdigit(s)) + if(*s) geturl(www(atoi(s)-1)->url->fullname, GET, 0, 0, 0); else message("no url selected"); |
