Bug 118076 - printf problem
Summary: printf problem
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: file
Version: rawhide
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Radek Vokál
QA Contact: Mike McLean
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2004-03-11 19:59 UTC by d.binderman
Modified: 2007-11-30 22:10 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2004-08-16 07:46:04 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
small printf patch (378 bytes, patch)
2004-08-13 08:10 UTC, Radek Vokál
no flags Details | Diff

Description d.binderman 2004-03-11 19:59:56 UTC
Description of problem:

I just tried to compile Fedora Core2 Test1 package file-4.07-1

The compiler said

fsmagic.c(98): warning #268: the format string ends before this argument

The source code is

                if (file_printf(ms, "cannot open (%s)",
                    fn, strerror(errno)) == -1)

Only one % specifier, but two trailing parameters.  I'm not sure what
the fix is for this.



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


How reproducible:


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


Expected results:


Additional info:

Comment 1 Radek Vokál 2004-08-13 08:10:23 UTC
Created attachment 102689 [details]
small printf patch

Patch fixes printf warning. Will be included on CVS later with other patches.


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