Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Build failure for games/sail/pl_7.c



On Sun, Mar 15, 2009 at 10:18:40AM -0700, Paul Goyette wrote:
> I offer instead the following patch:
>
> --- pl_7.c      15 Mar 2009 03:33:56 -0000      1.35
> +++ pl_7.c      15 Mar 2009 17:13:43 -0000
> @@ -230,7 +230,7 @@ draw_scroll(void)
>                 index_of_top -= sc_scrollup;
>         }
>
> -       for (y = 0; y < SCROLL_Y - 1; y++) {
> +       for (y = 0; y < visible_lines; y++) {
>                 index_of_y = index_of_top + y;
>                 if (index_of_y >= total_lines) {
>                         break;
>
> The unsigned variable visible_lines is assigned a value of SCROLL_Y -1 a  
> few lines earlier and is not modified between that assignment and this  
> for(;;) loop.

fixed, thanks for the suggestion and sorry about the mess.

-- 
David A. Holland
dholland%netbsd.org@localhost


Home | Main Index | Thread Index | Old Index