changeset 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 c1c536313023
children 60d8d8f667ed
files src/audacious/pluginenum.c
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
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);
 }