Mercurial > audlegacy
diff src/audacious/pluginenum.c @ 4747:0cc36efdbe07
Don't use a static buffer, but g_strdup_vprintf().
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Wed, 30 Jul 2008 17:15:13 +0300 |
parents | 6584bba8de63 |
children | b136f202ebfa c6f352d25d27 |
line wrap: on
line diff
--- a/src/audacious/pluginenum.c Tue Jul 29 09:01:10 2008 +0300 +++ b/src/audacious/pluginenum.c Wed Jul 30 17:15:13 2008 +0300 @@ -633,14 +633,16 @@ static void plugin2_dispose(GModule *module, const gchar *str, ...) { - gchar buf[4096]; + gchar *buf; va_list va; va_start(va, str); - vsnprintf(buf, 4096, str, va); + buf = g_strdup_vprintf(str, va); va_end(va); g_message("*** %s\n", buf); + g_free(buf); + g_module_close(module); }