diff --git a/src/QueuePage.cxx b/src/QueuePage.cxx index 64fbed8d..8c017e99 100644 --- a/src/QueuePage.cxx +++ b/src/QueuePage.cxx @@ -187,9 +187,7 @@ QueuePage::GetListItemText(std::span buffer, assert(idx < playlist->size()); const auto &song = (*playlist)[idx]; - strfsong(buffer, options.list_format.c_str(), &song); - - return buffer.data(); + return strfsong(buffer, options.list_format.c_str(), &song); } void