Subject: pkg/7082: off-by-one error in emiclock
To: None <gnats-bugs@gnats.netbsd.org>
From: jim <jim@netman2.bcpl.lib.md.us>
List: netbsd-bugs
Date: 03/04/1999 06:07:55
>Number: 7082
>Category: pkg
>Synopsis: off-by-one error in emiclock
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: gnats-admin (GNATS administrator)
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Thu Mar 4 03:20:01 1999
>Last-Modified:
>Originator: jim spath <jspath@bcpl.net>
>Organization:
the earth
++++++++++++++++++++++++++++
Marvin the Paranoid Android.
>Release: 1.3.3
>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);
>Audit-Trail:
>Unformatted: