diff options
author | Max Kellermann <max@duempel.org> | 2013-10-19 16:58:45 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2013-10-19 17:24:21 +0200 |
commit | 5dc4cbdf82191bc29afc414ac10204bd17275d69 (patch) | |
tree | 76ad2e5c60de0e3f504a84cd1d6cff912153adbf /src/decoder/GmeDecoderPlugin.cxx | |
parent | 1434e5a22e82b4176c24c536a91eefa183b78516 (diff) | |
download | mpd-5dc4cbdf82191bc29afc414ac10204bd17275d69.tar.gz mpd-5dc4cbdf82191bc29afc414ac10204bd17275d69.tar.xz mpd-5dc4cbdf82191bc29afc414ac10204bd17275d69.zip |
util/FormatString: new library to replace g_strdup_printf()
Diffstat (limited to '')
-rw-r--r-- | src/decoder/GmeDecoderPlugin.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
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; } |