NetBSD Problem Report #7082

Received: (qmail 10558 invoked from network); 4 Mar 1999 11:05:31 -0000
Message-Id: <199903041107.GAA01393@netman2.bcpl.lib.md.us>
Date: Thu, 4 Mar 1999 06:07:55 -0500 (EST)
From: jim <jim@netman2.bcpl.lib.md.us>
Reply-To: jim@netman2.bcpl.lib.md.us
To: gnats-bugs@gnats.netbsd.org
Subject: off-by-one error in emiclock
X-Send-Pr-Version: 3.95

>Number:         7082
>Category:       pkg
>Synopsis:       off-by-one error in emiclock
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    gnats-admin
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Mar 04 03:20:01 +0000 1999
>Closed-Date:    Sat Apr 10 22:29:40 +0000 1999
>Last-Modified:  Wed Sep 05 00:41:22 +0000 2001
>Originator:     Jim Spath
>Release:        1.3.3
>Organization:
the earth
++++++++++++++++++++++++++++
Marvin the Paranoid Android.
>Environment:
System: NetBSD netman2.bcpl.net 1.3.3 NetBSD 1.3.3 (NETMAN2) #5: Sat Jan 2 23:42:52 EST 1999 jim@netman2.bcpl.net:/usr/src/sys/arch/i386/compile/NETMAN2 i386


>Description:
	There are 20 "costumes" to the clock, but only 19 may be selected.
>How-To-Repeat:
	Click on display, select cotumes.  0 through 19 are shown,
        but only up to 18 are selectable.
>Fix:
        Not really sure, but the problem "moves" when I change this line:

*** menu.c.df   Sun Feb 16 09:47:56 1997
--- menu.c      Thu Mar  4 06:05:28 1999
***************
*** 1263,1269 ****
                NULL);

      /* %a%K%e!<%"%$%F%`$N@8@. */
!     for (i = 0; i < NUM_OF_CHAR; i++) {
        sprintf(instanceStrBuf, "%s%d", COSTUME_BASE_STR, i);
        charItem[i] = XtCreateManagedWidget(instanceStrBuf,
                                        smeBSBObjectClass, popup, NULL, 0);
--- 1263,1269 ----
                NULL);

      /* %a%K%e!<%"%$%F%`$N@8@. */
!     for (i = 0; i <= NUM_OF_CHAR; i++) {
        sprintf(instanceStrBuf, "%s%d", COSTUME_BASE_STR, i);
        charItem[i] = XtCreateManagedWidget(instanceStrBuf,
                                        smeBSBObjectClass, popup, NULL, 0);


>Release-Note:
>Audit-Trail:

From: Ingolf Koch <ingolf@djo-jena.de>
To: jim <jim@netman2.bcpl.lib.md.us>
Cc: gnats-bugs@gnats.netbsd.org
Subject: Re: pkg/7082: off-by-one error in emiclock
Date: Thu, 4 Mar 1999 13:36:15 +0100

 On Thu, Mar 04, 1999 at 06:07:55AM -0500, jim wrote:
 > 	There are 20 "costumes" to the clock, but only 19 may be selected.

 I'm pretty sure that this is a feature, not a bug. ;-)

     Ingolf
State-Changed-From-To: open->closed 
State-Changed-By: tron 
State-Changed-When: Sat Apr 10 15:29:40 PDT 1999 
State-Changed-Why:  
That's definitely a feature. 
>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.