Commit 828c614d authored by Max Kellermann's avatar Max Kellermann

decoder/sidplay: use StringFormat<>()

parent 4964ad78
...@@ -59,7 +59,6 @@ ...@@ -59,7 +59,6 @@
#include <memory> #include <memory>
#include <string.h> #include <string.h>
#include <stdio.h>
#ifdef HAVE_SIDPLAYFP #ifdef HAVE_SIDPLAYFP
#define LIBSIDPLAYFP_VERSION GCC_MAKE_VERSION(LIBSIDPLAYFP_VERSION_MAJ, LIBSIDPLAYFP_VERSION_MIN, LIBSIDPLAYFP_VERSION_LEV) #define LIBSIDPLAYFP_VERSION GCC_MAKE_VERSION(LIBSIDPLAYFP_VERSION_MAJ, LIBSIDPLAYFP_VERSION_MIN, LIBSIDPLAYFP_VERSION_LEV)
...@@ -627,11 +626,10 @@ sidplay_container_scan(Path path_fs) ...@@ -627,11 +626,10 @@ sidplay_container_scan(Path path_fs)
if (!duration.IsNegative()) if (!duration.IsNegative())
h.OnDuration(SongTime(duration)); h.OnDuration(SongTime(duration));
char track_name[32];
/* Construct container/tune path names, eg. /* Construct container/tune path names, eg.
Delta.sid/tune_001.sid */ Delta.sid/tune_001.sid */
sprintf(track_name, SUBTUNE_PREFIX "%03u.sid", i); tail = list.emplace_after(tail,
tail = list.emplace_after(tail, track_name, StringFormat<32>(SUBTUNE_PREFIX "%03u.sid", i),
tag_builder.Commit()); tag_builder.Commit());
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment