Bug 141124

Summary: nagios-1.3-2: array suscript out of range
Product: [openSUSE] SUSE Linux 10.1 Reporter: David Binderman <dcb314>
Component: BasesystemAssignee: Wolfgang Rosenauer <wolfgang.rosenauer>
Status: RESOLVED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Minor    
Priority: P5 - None    
Version: unspecified   
Target Milestone: Beta 1   
Hardware: All   
OS: SUSE Other   
Whiteboard:
Found By: Other Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description David Binderman 2005-12-30 11:48:19 UTC
I just tried to compile package nagios-1.3-2 with a non standard version
of the GNU C compiler 

It said

1.

notifications.c:552: warning: array subscript out of range

The source code is

	host_name[sizeof(host_name)]='\x0';

Clearly broken code. Suggest

	host_name[ sizeof( host_name) - 1 ]='\x0';
Comment 1 Wolfgang Rosenauer 2006-01-09 11:47:44 UTC
fixed for 10.1beta1
Thanks for the report.