Bug 115964 - sscanf problem
Summary: sscanf problem
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: procps
Version: 1
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Daniel Walsh
QA Contact: Brian Brock
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2004-02-17 12:18 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-03-29 02:45:07 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description d.binderman 2004-02-17 12:18:56 UTC
Description of problem:

I just tried to compile package procps-2.0.17-1 from Fedora.

The compiler said

1.

vmstat.c:124: warning: too many arguments for format

The source code is

                sscanf(p, "cpu  %lu %lu %lu %lu %lu", &(stats->cpu_user),
                        &(stats->cpu_nice), &(stats->cpu_system),
                        &(stats->cpu_idle), &(stats->cpu_iowait),
                       &cpu_irq, &cpu_softirq);

Five % specifiers, seven following 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 Daniel Walsh 2004-03-25 20:11:51 UTC
Please try procps-3.1.15


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