# HG changeset patch # User Giacomo Lozito # Date 1190150620 -7200 # Node ID bf2b39567b8c16c13d628287a8d1dd811dff6fbe # Parent 08340a70fa6cc695bca1d62825b62cd0860637bd use g_strdup_printf in place of g_string_append_printf diff -r 08340a70fa6c -r bf2b39567b8c src/audacious/playlist.c --- a/src/audacious/playlist.c Tue Sep 18 23:57:58 2007 +0300 +++ b/src/audacious/playlist.c Tue Sep 18 23:23:40 2007 +0200 @@ -688,11 +688,7 @@ gchar *filename_entry; if ( subtunes_num > 0 ) { - GString *tmpstr = g_string_new(filename); - g_string_append_printf(tmpstr, "?%i", i); - filename_entry = tmpstr->str; - g_string_free(tmpstr, FALSE); - + filename_entry = g_strdup_printf("%s?%d", filename, i); /* we're dealing with subtune, let's ask again tuple information to plugin, by passing the ?subsong suffix; this way we may get specific subtune information in the tuple, if available */