summaryrefslogtreecommitdiff
path: root/src/decoder/plugins/SidplayDecoderPlugin.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2016-04-12 22:27:15 +0200
committerMax Kellermann <max@duempel.org>2016-04-12 22:59:23 +0200
commit6a1f5667f95f99c4f4457f370abb10172fa7751e (patch)
tree4a35bbd04a4db80773ee81fe9cf0bb6989bd6439 /src/decoder/plugins/SidplayDecoderPlugin.cxx
parentfab5f58ee058ad7de633c26bb3fb90762bdeb6a9 (diff)
util/FormatString: return AllocatedString
Diffstat (limited to 'src/decoder/plugins/SidplayDecoderPlugin.cxx')
-rw-r--r--src/decoder/plugins/SidplayDecoderPlugin.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/decoder/plugins/SidplayDecoderPlugin.cxx b/src/decoder/plugins/SidplayDecoderPlugin.cxx
index 7d6ccff89..50c6ec4c6 100644
--- a/src/decoder/plugins/SidplayDecoderPlugin.cxx
+++ b/src/decoder/plugins/SidplayDecoderPlugin.cxx
@@ -24,6 +24,7 @@
#include "fs/Path.hxx"
#include "fs/AllocatedPath.hxx"
#include "util/FormatString.hxx"
+#include "util/AllocatedString.hxx"
#include "util/Domain.hxx"
#include "util/Error.hxx"
#include "system/ByteOrder.hxx"
@@ -352,7 +353,7 @@ sidplay_container_scan(Path path_fs, const unsigned int tnum)
/* Construct container/tune path names, eg.
Delta.sid/tune_001.sid */
if(tnum<=info.songs) {
- return FormatNew(SUBTUNE_PREFIX "%03u.sid", tnum);
+ return FormatString(SUBTUNE_PREFIX "%03u.sid", tnum).Steal();
} else
return nullptr;
}