NetBSD-Bugs archive

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

bin/51286: In macro delay is wrong value used.



>Number:         51286
>Category:       bin
>Synopsis:       In macro delay is wrong value used.
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Jun 27 08:15:01 +0000 2016
>Originator:     Henning Petersen
>Release:        Netbsd-current
>Organization:
>Environment:
>Description:
Value in macro delay have to be smaller as 20, as in macro delay usleep is used.
>How-To-Repeat:

>Fix:
diff -u -p -r1.28 snake.c
--- games/snake/snake/snake.c	19 Jun 2012 05:46:09 -0000	1.28
+++ games/snake/snake/snake.c	19 Dec 2015 07:03:10 -0000
@@ -892,7 +892,7 @@ pushsnake(void)
 			bonus = ((random() >> 8) & 0377) % 10;
 			mvprintw(lcnt + 1, 0, "%d\n", bonus);
 			refresh();
-			delay(30);
+			delay(19);
 			if (bonus == i) {
 				spacewarp(1);
 				logit("bonus");



Home | Main Index | Thread Index | Old Index