Don't use snprintf() as it's C99-only. Use g_snprintf().