Commit 8205e1bb authored by Warren Dukes's avatar Warren Dukes

fix a bug in username and password parsing in http url's

git-svn-id: https://svn.musicpd.org/mpd/trunk@1877 09075e82-0dd4-0310-85a5-a0d7c8717e4f
parent 3f968262
......@@ -259,8 +259,8 @@ static int parseUrl(InputStreamHTTPData * data, char * url) {
}
else {
user = malloc(at-temp+1);
strncpy(user, temp, colon-temp);
user[colon-temp] = '\0';
strncpy(user, temp, at-temp);
user[at-temp] = '\0';
passwd = strdup("");
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment