Bug 229908 - bzflag-2.0.8-22: array subscript out of range
Summary: bzflag-2.0.8-22: array subscript out of range
Status: RESOLVED DUPLICATE of bug 235591
Alias: None
Product: openSUSE 10.3
Classification: openSUSE
Component: Basesystem (show other bugs)
Version: unspecified
Hardware: All SUSE Other
: P5 - None : Normal (vote)
Target Milestone: ---
Assignee: Petr Gajdos
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-12-20 11:27 UTC by David Binderman
Modified: 2007-04-16 13:01 UTC (History)
0 users

See Also:
Found By: Other
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David Binderman 2006-12-20 11:27:44 UTC
I just tried to compile package bzflag-2.0.8-22
with the Intel C compiler.

The compiler said

ServerStartMenu.cxx(326): warning #175: subscript out of range

The source code is

    settings[13] = settings[14];

but

char ServerStartMenu::settings[] = "bfaaaaabaaaaa";

I count only 13 chars in settings, so settings[14] does not exist.

Suggest code rework.
Comment 1 Stefan Dirsch 2007-01-16 22:32:50 UTC
Feel free to close as duplicate of Bug #235591.
Comment 2 Petr Gajdos 2007-04-16 13:01:24 UTC
Fixed.

*** This bug has been marked as a duplicate of bug 235591 ***