Bug 111531 - multiple problems in the source code
Summary: multiple problems in the source code
Keywords:
Status: CLOSED DUPLICATE of bug 78481
Alias: None
Product: Fedora
Classification: Fedora
Component: xloadimage
Version: 1
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Bill Nottingham
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2003-12-04 22:09 UTC by d.binderman
Modified: 2014-03-17 02:40 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2006-02-21 19:00:17 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

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.


Note You need to log in before you can comment on or make changes to this bug.