url: fix the uriparser (password parsing)
This commit is contained in:
parent
0ebca1b3db
commit
1ee279c772
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue