fix the format string in snprintf
Merge pull request #1 from grissiom/master

fix the format string in snprintf