Code

use g_vsnprintf() instead of vsnprintf() to avoid platform problems