Bug 239169 - pachi-1.0-65: array subscript is below array bounds
Summary: pachi-1.0-65: array subscript is below array bounds
Status: RESOLVED DUPLICATE of bug 235591
Alias: None
Product: openSUSE 10.3
Classification: openSUSE
Component: Other (show other bugs)
Version: unspecified
Hardware: All SUSE Other
: P5 - None : Normal (vote)
Target Milestone: ---
Assignee: Stefan Dirsch
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-01-26 09:23 UTC by David Binderman
Modified: 2007-01-26 11:37 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 2007-01-26 09:23:03 UTC
I just tried to compile package pachi-1.0-65
with the new GNU compiler version 4.3 snapshot 20070119

The compiler said

game.c:84: warning: array subscript is below array bounds

The source code is

    if(y < 0)
        if(roommap[x][y-1]==stage)

I agree with the compiler. Suggest new code

    if(y > 0)
        if(roommap[x][y-1]==stage)
Comment 1 Stefan Dirsch 2007-01-26 11:37:58 UTC

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