Bug 106305

Summary: sane-backends bad source code
Product: [Retired] Red Hat Linux Reporter: d.binderman
Component: sane-backendsAssignee: Tim Waugh <twaugh>
Status: CLOSED RAWHIDE QA Contact: David Lawrence <dkl>
Severity: medium Docs Contact:
Priority: medium    
Version: 9   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: 1.0.12-5 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2003-11-11 02:15:55 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description d.binderman 2003-10-05 09:19:48 UTC
Description of problem:

Hello there,

I just tried to compile package sane-backends-1.0.9-5, from Redhat 9.0,
with compiler flag -Wall.

The compiler said

canon-sane.c:1781: warning: operation on `p' may be undefined

The source code is

         *p++ = *(p + 1);

You probably meant to say

         p[ 0] = p[ 1];
         ++p;
         




Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.
2.
3.
    
Actual results:


Expected results:


Additional info:

Comment 1 Tim Waugh 2003-10-08 08:44:56 UTC
Fixed in CVS.  Thanks.