X-Git-Url: http://ncurses.scripts.mit.edu/?p=ncurses.git;a=blobdiff_plain;f=progs%2Ftoe.c;h=e3749b2f9e9e6950d83543ce8f1381c5c60a72fb;hp=9b62d1e3bd2156008493e43afad1f53891c735c2;hb=03a795bde58b3280a4e9d80029a3b7fec13c79ad;hpb=5242fccf157e715ed878455a3efea6c82b840eb5;ds=sidebyside diff --git a/progs/toe.c b/progs/toe.c index 9b62d1e3..e3749b2f 100644 --- a/progs/toe.c +++ b/progs/toe.c @@ -46,7 +46,7 @@ #include #endif -MODULE_ID("$Id: toe.c,v 1.43 2007/02/03 19:10:39 tom Exp $") +MODULE_ID("$Id: toe.c,v 1.44 2007/07/21 17:45:59 tom Exp $") #define isDotname(name) (!strcmp(name, ".") || !strcmp(name, "..")) @@ -326,7 +326,7 @@ main(int argc, char *argv[]) _nc_progname = _nc_rootname(argv[0]); - while ((this_opt = getopt(argc, argv, "0123456789ahuvUV")) != EOF) { + while ((this_opt = getopt(argc, argv, "0123456789ahuvUV")) != -1) { /* handle optional parameter */ if (isdigit(this_opt)) { switch (last_opt) {