Bug 152845

Summary: xcoral-3.42b-132: 2 * array subscript out of range
Product: [openSUSE] SUSE LINUX 10.0 Reporter: David Binderman <dcb314>
Component: BasesystemAssignee: Michael Andres <ma>
Status: RESOLVED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None    
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: SuSE Linux 10.1   
Whiteboard:
Found By: Other Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description David Binderman 2006-02-22 17:00:39 UTC
I just tried to compile package xcoral-3.42b-132 with a non standard
version of the GNU C compiler.

It said

1.

fs_box.c:302: warning: array subscript out of range

The source code is

	fs_box.title_text [TITLE_SIZE] = '\0';

but

../BUILD/xcoral-3.42b/fs_box.h:    char title_text [TITLE_SIZE];

Suggest new code

	fs_box.title_text [TITLE_SIZE - 1] = '\0';

2.

list_box.c:496: warning: array subscript out of range

The source code is

	          l_box.title_text [TITLE_SIZE] = '\0';

Duplicate.
Comment 1 Stefan Dirsch 2007-01-16 22:32:49 UTC
Feel free to close as duplicate of Bug #235591.
Comment 2 Michael Andres 2007-01-26 22:05:07 UTC
Fixed and reported upstream.