Fix sprintf/printf confusion. Thanks to @Discordier