Michael Reed wrote:
> I only have a very loose idea of what gets accepted or not when the tree
> is "locked", so apologies if this should have been sent at a different
> time.

patches are always welcome. they just get overlooked sometimes. :)

> Index: worm.c
> ===================================================================
> RCS file: /cvs/src/games/worm/worm.c,v
> retrieving revision 1.28
> diff -u -p -r1.28 worm.c
> --- worm.c    9 Mar 2015 19:52:02 -0000       1.28
> +++ worm.c    10 Aug 2015 19:06:06 -0000
> @@ -93,6 +93,14 @@ main(int argc, char **argv)
>       struct pollfd pfd[1];
>       const char *errstr;
>  
> +     if (argc >= 2) {
> +             start_len = strtonum(argv[1], 1, ((LINES-3) * (COLS-2)) / 3,
> +                 &errstr);
> +             if (errstr) {
> +                     endwin();
> +                     errx(1, "length argument is %s.", errstr);
> +             }
> +     }
>       setbuf(stdout, outbuf);
>       signal(SIGINT, leave);

Unfortunately, this doesn't look right. Now it's calling endwin() before it
calls initscr(). And it's still using LINES and COLS. I think we may just live
with the flashing.

Reply via email to