#275 Ensure rtweight matches the right arguments on a .density file

Incomplete
open
nobody
None
5
2014-05-25
2014-05-25
No

In sscanf in the the format parameter any white-space character (as determined by the isspace() function) will match zero or more white-space characters from the input stream.

This leads to errors if one of the arguments is missing when rtweight tries to parse a .density file.

For eg:
19.32 Gold, pure

would pass inspection matching the id as 19 and the density as 0.32.

The patch also treats the case when the .density file is empty.

I'd also like to add a few lines to the regression test weight.sh to validate the above mentioned cases. Any thoughts on this?

Mihai Neacsu

1 Attachments

Discussion


Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks