Mercurial > audlegacy
comparison 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 |
comparison
equal
deleted
inserted
replaced
| 4746:c1c536313023 | 4747:0cc36efdbe07 |
|---|---|
| 631 /*******************************************************************/ | 631 /*******************************************************************/ |
| 632 | 632 |
| 633 static void | 633 static void |
| 634 plugin2_dispose(GModule *module, const gchar *str, ...) | 634 plugin2_dispose(GModule *module, const gchar *str, ...) |
| 635 { | 635 { |
| 636 gchar buf[4096]; | 636 gchar *buf; |
| 637 va_list va; | 637 va_list va; |
| 638 | 638 |
| 639 va_start(va, str); | 639 va_start(va, str); |
| 640 vsnprintf(buf, 4096, str, va); | 640 buf = g_strdup_vprintf(str, va); |
| 641 va_end(va); | 641 va_end(va); |
| 642 | 642 |
| 643 g_message("*** %s\n", buf); | 643 g_message("*** %s\n", buf); |
| 644 g_free(buf); | |
| 645 | |
| 644 g_module_close(module); | 646 g_module_close(module); |
| 645 } | 647 } |
| 646 | 648 |
| 647 void | 649 void |
| 648 plugin2_process(PluginHeader *header, GModule *module, const gchar *filename) | 650 plugin2_process(PluginHeader *header, GModule *module, const gchar *filename) |
