Bug 111531

Summary: multiple problems in the source code
Product: [Fedora] Fedora Reporter: d.binderman
Component: xloadimageAssignee: Bill Nottingham <notting>
Status: CLOSED DUPLICATE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 1CC: rvokal
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 19:00:17 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-12-04 22:09:43 UTC
Description of problem:
I just tried to compile package xloadimage-4.1-29 from Fedora.

The compiler said

1.

sunraster.c:243: warning: too few arguments for format

The source code is

    fprintf(stderr, "%s: Unsupported Sun Rasterfile image type
(sorry)\n");

Missing string for the %s specifier.

2.

tiff.c:220: warning: too few arguments for format

The source code is

    printf("Titled \"%s\"");

Missing string for the %s specifier.

3.

tiff.c:407: warning: too few arguments for format

The source code is

      fprintf(stderr,
              "%s: Can't handle TIFF RGB images with %d samples per
pixel, sorry\n",
              info.samplesperpixel);

Missing string for the %s specifier.

I can recommend use of the -Wall compiler flag to help remove these 
obvious run time bugs.




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

How reproducible:


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


Expected results:


Additional info:

Comment 1 Miloslav Trmac 2004-02-06 19:24:15 UTC

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

Comment 2 Red Hat Bugzilla 2006-02-21 19:00:17 UTC
Changed to 'CLOSED' state since 'RESOLVED' has been deprecated.