Mercurial > audlegacy
changeset 3570:bf2b39567b8c trunk
use g_strdup_printf in place of g_string_append_printf
author | Giacomo Lozito <james@develia.org> |
---|---|
date | Tue, 18 Sep 2007 23:23:40 +0200 |
parents | 08340a70fa6c |
children | cfb56cc47f9f d3ba8bcf9fd6 |
files | src/audacious/playlist.c |
diffstat | 1 files changed, 1 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- 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 */