Code

Use glib's functions (g_strlcat, g_strlcpy, g_snprintf, g_strdup_vprintf)