Merge branch '1' of git://github.com/neheb/MPD

This commit is contained in:
Max Kellermann
2021-11-11 10:33:17 +01:00
8 changed files with 10 additions and 11 deletions

View File

@@ -213,7 +213,7 @@ read_stream_art(Response &r, const std::string_view art_directory,
std::min<offset_type>(art_file_size - offset,
r.GetClient().binary_limit);
std::unique_ptr<std::byte[]> buffer(new std::byte[buffer_size]);
auto buffer = std::make_unique<std::byte[]>(buffer_size);
std::size_t read_size = 0;
if (buffer_size > 0) {