NetBSD Problem Report #67

From gnats  Wed Jan 12 13:00:13 1994
Received: from hulk.sfsu.edu (hulk.sfsu.edu [130.212.3.12]) by sun-lamp.cs.berkeley.edu (8.6.4/8.6.4) with ESMTP id MAA10512 for <gnats-bugs@sun-lamp.cs.berkeley.edu>; Wed, 12 Jan 1994 12:48:02 -0800
Message-Id: <199401122046.MAA14271@hulk.sfsu.edu>
Date: Wed, 12 Jan 1994 12:46:26 -0800
From: obrien@hulk.sfsu.edu
Reply-To: obrien@hulk.sfsu.edu
To: gnats-bugs@sun-lamp.cs.berkeley.edu
Subject: libcurses/mille bin/port-i386
X-Send-Pr-Version: 3.01.6

>Number:         67
>Category:       lib
>Synopsis:       addch in curses lib is not returning ERR
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    mycroft
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Jan 12 13:05:04 +0000 1994
>Closed-Date:    Fri Sep 16 21:28:57 +0000 1994
>Last-Modified:  Sun Mar 03 17:49:58 +0000 2013
>Originator:     Jonathan O'Brien
>Release:        current as of Jan 11.
>Organization:
Jonathan O'Brien                               obrien@hulk.sfsu.edu
San Francisco State University                 obrien@sfsuvax1.sfsu.edu
>Environment:
i486 NetBSD-current Jan 11. libcurses.a

System: NetBSD hulk.sfsu.edu 0.9a VHULK#0 i386


>Description:
	In mille :) init.c line 200:
		while (addch('_') != ERR)
	This condition never comes true.

>How-To-Repeat:
	build current mille on static libs and watch it hang.

>Fix:
	[from mycroft]

	This seems like a Curses bug, but a temporary solution is to apply
	the following change to init.c:

===================================================================
RCS file: /b/source/CVS/src/games/mille/init.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -c -1 -r1.2 -r1.3
*** 1.2	1993/08/01 18:54:02
--- 1.3	1994/01/13 01:19:58
***************
*** 35,37 ****
  /*static char sccsid[] = "from: @(#)init.c	5.4 (Berkeley) 6/1/90";*/
! static char rcsid[] = "$Id: init.c,v 1.2 1993/08/01 18:54:02 mycroft Exp $";
  #endif /* not lint */
--- 35,37 ----
  /*static char sccsid[] = "from: @(#)init.c	5.4 (Berkeley) 6/1/90";*/
! static char rcsid[] = "$Id: init.c,v 1.3 1994/01/13 01:19:58 mycroft Exp $";
  #endif /* not lint */
***************
*** 199,202 ****
  		move(SCORE_Y - 1, 1);
! 		while (addch('_') != ERR)
! 			continue;
  		for (pp = Player; pp <= &Player[COMP]; pp++) {
--- 199,202 ----
  		move(SCORE_Y - 1, 1);
! 		for (i = 0; i < SCORE_X - 1; i++)
! 			addch('_');
  		for (pp = Player; pp <= &Player[COMP]; pp++) {

	I have sent mail to Keith Bostic about the Curses bug, and am
	awaiting a reply.

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->analyzed 
State-Changed-By: mycroft 
State-Changed-When: Wed Jan 12 17:45:29 PST 1994 
State-Changed-Why:  
Supplied a temporary patch for mille(6), and looked at the Curses bug. 


Responsible-Changed-From-To: gnats-admin->mycroft 
Responsible-Changed-By: mycroft 
Responsible-Changed-When: Wed Jan 12 17:45:29 PST 1994 
Responsible-Changed-Why:  
I am now in correspondence with the maintainer of the library. 
State-Changed-From-To: analyzed->closed 
State-Changed-By: mycroft 
State-Changed-When: Fri Sep 16 14:28:57 PDT 1994 
State-Changed-Why:  
This has been fixed for a while now... 

>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.