From a62fe305464c6815dca7139dcb0cb689fcdfbaa1 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Fri, 6 Feb 2015 13:06:38 +0100 Subject: SongPrint: let CPP concatenate string literals --- src/SongPrint.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/SongPrint.cxx b/src/SongPrint.cxx index e5e5ebb76..9d10d690a 100644 --- a/src/SongPrint.cxx +++ b/src/SongPrint.cxx @@ -52,14 +52,14 @@ song_print_uri(Client &client, const char *uri, bool base) uri = allocated.c_str(); } - client_printf(client, "%s%s\n", SONG_FILE, uri); + client_printf(client, SONG_FILE "%s\n", uri); } void song_print_uri(Client &client, const LightSong &song, bool base) { if (!base && song.directory != nullptr) { - client_printf(client, "%s%s/%s\n", SONG_FILE, + client_printf(client, SONG_FILE "%s/%s\n", song.directory, song.uri); } else song_print_uri(client, song.uri, base); -- cgit v1.2.3