url: fix the uriparser (password parsing)

This commit is contained in:
Jaroslav Kysela 2014-06-01 20:57:53 +02:00
parent 0ebca1b3db
commit 1ee279c772

View file

@ -122,7 +122,7 @@ urlparse ( const char *str, url_t *url )
if (url->user) {
s = strstr(url->user, ":");
if (s) {
strcpy(url->pass, s+1);
url->pass = strdup(s + 1);
*s = 0;
}
}