use snprintf rather than sprintf

safe buffering
Merge branch 'master' of github.com:pmyadlowsky/gusher