Bug 106311

Summary: vte bad source code
Product: [Retired] Red Hat Linux Reporter: d.binderman
Component: vteAssignee: Nalin Dahyabhai <nalin>
Status: CLOSED DUPLICATE 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: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2006-02-21 18:58:56 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:40:30 UTC
Description of problem:


Hello there,

I just tried to compile package vte-0.10.25-1, from Redhat 9.0,
with compiler flag -Wall.

The compiler said

ssfe.c:756: warning: operation on `tmp' may be undefined
ssfe.c:852: warning: operation on `tmp' may be undefined
ssfe.c:864: warning: operation on `tmp' may be undefined

The source code is

        *(tmp+1)=(*tmp--);

Better source code is

        tmp[ 1] = tmp[ 0];
		--tmp;

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


How reproducible:


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


Expected results:


Additional info:

Comment 1 Miloslav Trmac 2004-02-07 16:56:10 UTC

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

Comment 2 Red Hat Bugzilla 2006-02-21 18:58:56 UTC
Changed to 'CLOSED' state since 'RESOLVED' has been deprecated.