summaryrefslogtreecommitdiff
path: root/src/ui.c
diff options
context:
space:
mode:
authorLars-Dominik Braun <lars@6xq.net>2011-06-08 17:55:40 +0200
committerLars-Dominik Braun <lars@6xq.net>2011-06-13 20:19:34 +0200
commit09355b9299ddfa80465aff01b94e9d4e3f5c1961 (patch)
tree9af0f3c5f6f3d41771eba6d55185f363c2e3cb3e /src/ui.c
parent3aff781a610e69a4e49d5db386b9885f1f167451 (diff)
downloadpianobar-windows-09355b9299ddfa80465aff01b94e9d4e3f5c1961.tar.gz
pianobar-windows-09355b9299ddfa80465aff01b94e9d4e3f5c1961.tar.bz2
pianobar-windows-09355b9299ddfa80465aff01b94e9d4e3f5c1961.zip
waitress: Rewrite split url
Accepts user and password in urls now. Tests added.
Diffstat (limited to 'src/ui.c')
-rw-r--r--src/ui.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ui.c b/src/ui.c
index 69f7bec..a025b9c 100644
--- a/src/ui.c
+++ b/src/ui.c
@@ -137,7 +137,7 @@ static WaitressReturn_t BarPianoHttpRequest (WaitressHandle_t *waith,
waith->extraHeaders = "Content-Type: text/xml\r\n";
waith->postData = req->postData;
waith->method = WAITRESS_METHOD_POST;
- strncpy (waith->path, req->urlPath, sizeof (waith->path)-1);
+ waith->url.path = req->urlPath;
return WaitressFetchBuf (waith, &req->responseData);
}