Commit f23e99b0 made use of snprintf(), which is not universally available. Fix this by using g_snprintf().