Bug 134418 - sane-frontends-1.0.13-6: array subscript out of range
Summary: sane-frontends-1.0.13-6: array subscript out of range
Status: RESOLVED DUPLICATE of bug 141851
Alias: None
Product: SUSE LINUX 10.0
Classification: openSUSE
Component: Basesystem (show other bugs)
Version: Final
Hardware: All SuSE Linux 10.0
: P5 - None : Minor
Target Milestone: ---
Assignee: Johannes Meixner
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-11-18 16:03 UTC by David Binderman
Modified: 2006-01-09 13:49 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 2005-11-18 16:03:46 UTC
I just tried to compile package sane-frontends-1.0.13-6 with a 
non standard version of the GNU C compiler.

It said

xscanimage.c:1270: warning: array subscript out of range

The source code is

	testfilename [sizeof (testfilename)] = 0;

Clearly broken code. Suggest 

	testfilename [sizeof (testfilename) - 1] = 0;

Also, the email address of the author [ becka@sunserver1.rz.uni-duesseldorf.de ]
seems broken.
Comment 1 Johannes Meixner 2006-01-09 13:49:53 UTC

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