Bug 134418

Summary: sane-frontends-1.0.13-6: array subscript out of range
Product: [openSUSE] SUSE LINUX 10.0 Reporter: David Binderman <dcb314>
Component: BasesystemAssignee: Johannes Meixner <jsmeix>
Status: RESOLVED DUPLICATE QA Contact: E-mail List <qa-bugs>
Severity: Minor    
Priority: P5 - None    
Version: Final   
Target Milestone: ---   
Hardware: All   
OS: SuSE Linux 10.0   
Whiteboard:
Found By: Other Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

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 ***