Bug 141227

Summary: rasmol-2.7.3-2: array subscript out of range
Product: [openSUSE] SUSE LINUX 10.0 Reporter: David Binderman <dcb314>
Component: BasesystemAssignee: Ladislav Michnovic <lmichnovic>
Status: RESOLVED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Minor    
Priority: P5 - None    
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: SUSE Other   
Whiteboard:
Found By: Other Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description David Binderman 2006-01-03 13:28:50 UTC
I just tried to compile package rasmol-2.7.3-2 with the Intel
C compiler

It said

multiple.c(528): warning #175: subscript out of range

The source code is

	MolName[i][MAX_MOLNAME]='\0';

but

char  MolName[MAX_MOLECULES][MAX_MOLNAME];

so MolName[i][MAX_MOLNAME] does not exist. Suggest code rework.
Comment 1 Ladislav Michnovic 2006-01-09 14:22:52 UTC
I'll take a look at it. Thank you for reporting bugs.
Comment 2 Ladislav Michnovic 2006-01-30 18:20:56 UTC
Code reworked.
Comment 3 David Binderman 2006-11-07 17:37:50 UTC
(In reply to comment #2)
> Code reworked.

I just had a look at the version in Suse Linux 10.2 BETA 1
and the bug still seems to me to exist.

Perhaps time to look at it again ?



Comment 4 Ladislav Michnovic 2006-11-08 13:29:13 UTC
You're right.
Comment 5 Ladislav Michnovic 2006-11-09 12:33:21 UTC
Now should be really fixed. Check out RC1.