[Nagiosplug-devel] [ nagiosplug-Bugs-1123292 ] check_swap: invalid scanf specification in argument parse

SourceForge.net noreply at sourceforge.net
Tue Feb 15 10:19:33 CET 2005


Bugs item #1123292, was opened at 2005-02-15 12:17
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=397597&aid=1123292&group_id=29880

Category: Argument proccessing
Group: Release (specify)
Status: Open
Resolution: None
Priority: 5
Submitted By: Steve Greenland (vmole)
Assigned to: Nobody/Anonymous (nobody)
Summary: check_swap: invalid scanf specification in argument parse

Initial Comment:
Parsing the values of -w and -c (may) use the scanf()
fmt string "%.0f, %d%%". However, precision specifiers
are invalid in scanf() processing. I suppose the intent
is to trim off any trailing fraction, but that can't be
done in scanf(). Instead, read the whole value, and
then use floor(3).

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=397597&aid=1123292&group_id=29880




More information about the Devel mailing list