Fix all of the -Wformat-security warnings

This fixes compilation with -Werror=format-security enabled e.g. Debian's defaults

Signed-off-by: Steven Honeyman <stevenhoneyman@users.noreply.github.com>
Merge pull request #8 from stevenhoneyman/master

Fix all of the -Wformat-security warnings