Avoid format-security warning (issue #8).
Prevent signed/unsigned comparison warning.
Merge pull request #11 from twaugh/master

Avoid format-security warning (issue #8).