aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJ. Alexander Treuman <jat@spatialrift.net>2007-06-09 13:43:40 +0000
committerJ. Alexander Treuman <jat@spatialrift.net>2007-06-09 13:43:40 +0000
commit9ccf0d8a2555a73854cde6e2e4cee3bdb6421ec5 (patch)
tree6a35b692e482873ee978ea00d6a9ca921ce12855
parent9980d233c4d9bea05e47e5972b2ab47976e942c4 (diff)
downloadmpd-9ccf0d8a2555a73854cde6e2e4cee3bdb6421ec5.tar.gz
mpd-9ccf0d8a2555a73854cde6e2e4cee3bdb6421ec5.tar.xz
mpd-9ccf0d8a2555a73854cde6e2e4cee3bdb6421ec5.zip
Use string concatenation instead of snprintf for the User-Agent HTTP
header. git-svn-id: https://svn.musicpd.org/mpd/trunk@6520 09075e82-0dd4-0310-85a5-a0d7c8717e4f
-rw-r--r--src/inputStream_http.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/inputStream_http.c b/src/inputStream_http.c
index ca5c73a7c..a2b343c6f 100644
--- a/src/inputStream_http.c
+++ b/src/inputStream_http.c
@@ -468,14 +468,13 @@ static int finishHTTPInit(InputStream * inStream)
"GET %s HTTP/1.1\r\n"
"Host: %s\r\n"
/* "Connection: close\r\n" */
- "User-Agent: %s/%s\r\n"
+ "User-Agent: " PACKAGE_NAME "/" PACKAGE_VERSION "\r\n"
"Range: bytes=%ld-\r\n"
"%s" /* authorization */
"Icy-Metadata:1\r\n"
"\r\n",
data->path,
data->host,
- PACKAGE_NAME, PACKAGE_VERSION,
inStream->offset,
data->proxyAuth ? data->proxyAuth :
(data->httpAuth ? data->httpAuth : ""));