From 5dc4cbdf82191bc29afc414ac10204bd17275d69 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sat, 19 Oct 2013 16:58:45 +0200 Subject: util/FormatString: new library to replace g_strdup_printf() --- src/decoder/GmeDecoderPlugin.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/decoder/GmeDecoderPlugin.cxx') diff --git a/src/decoder/GmeDecoderPlugin.cxx b/src/decoder/GmeDecoderPlugin.cxx index f735c55ba..3a68e2321 100644 --- a/src/decoder/GmeDecoderPlugin.cxx +++ b/src/decoder/GmeDecoderPlugin.cxx @@ -22,6 +22,7 @@ #include "DecoderAPI.hxx" #include "CheckAudioFormat.hxx" #include "tag/TagHandler.hxx" +#include "util/FormatString.hxx" #include "util/UriUtil.hxx" #include "util/Error.hxx" #include "util/Domain.hxx" @@ -122,9 +123,8 @@ gme_container_scan(const char *path_fs, const unsigned int tnum) const char *subtune_suffix = uri_get_suffix(path_fs); if (tnum <= num_songs){ - char *subtune = g_strdup_printf( - SUBTUNE_PREFIX "%03u.%s", tnum, subtune_suffix); - return subtune; + return FormatNew(SUBTUNE_PREFIX "%03u.%s", + tnum, subtune_suffix); } else return nullptr; } -- cgit v1.2.3