diff options
author | Max Kellermann <max@duempel.org> | 2015-02-06 13:06:38 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2015-02-06 13:06:38 +0100 |
commit | a62fe305464c6815dca7139dcb0cb689fcdfbaa1 (patch) | |
tree | 8578a7a5252e804ea95c28c7dc78e8042cca58e5 /src | |
parent | 25ebb427daed554416b3a92c9d01681eefd9dc38 (diff) | |
download | mpd-a62fe305464c6815dca7139dcb0cb689fcdfbaa1.tar.gz mpd-a62fe305464c6815dca7139dcb0cb689fcdfbaa1.tar.xz mpd-a62fe305464c6815dca7139dcb0cb689fcdfbaa1.zip |
SongPrint: let CPP concatenate string literals
Diffstat (limited to 'src')
-rw-r--r-- | src/SongPrint.cxx | 4 |
1 files 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); |