Bug 149613 - bad printf strings
Summary: bad printf strings
Keywords:
Status: CLOSED NEXTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: freeze
Version: 3
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Nicolas Mailhot
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2005-02-24 14:16 UTC by David Binderman
Modified: 2007-11-30 22:11 UTC (History)
0 users

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2005-07-23 18:29:05 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description David Binderman 2005-02-24 14:16:16 UTC
Description of problem:

I just tried to compile package freeze-2.5.0-2 from 
Redhat Fedora Extras development tree.

The compiler said

freeze.c:76: warning: unknown conversion type character `w' in format
freeze.c:76: warning: too few arguments for format

The source code is

    fprintf(stderr, "\n\
      -c         Write output on stdout, don't remove original.\n\
      -d         If given, melting is done instead.\n\
      -g         Use \"greedy\" parsing (1.5% worse, 40% faster).\n\
      -f         Forces output file to be generated, even if one
already\n\
                 exists, and even if no space is saved by freezeing.\n\
      -i         Image mode.\n\
      -t         Text mode.\n\
      -v         Write freezing statistics. -vv means \"draw progress\n\
                 indicator\".\n\
      -V         Write version and compilation options.\n\
");

Suggest use %% for % in fprintf specifiers.




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


How reproducible:


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


Expected results:


Additional info:

Comment 1 Michael Schwendt 2005-07-23 18:29:05 UTC
Will be fixed in freeze-2.5.0-4


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