Merge pull request #2272 from akallabeth/ipv6_parser_fix

Fixed conversion of IPv6 to ServerHostname
This commit is contained in:
Bernhard Miklautz 2014-12-11 13:21:35 +01:00
commit 4b5f052c54
1 changed files with 1 additions and 1 deletions

View File

@ -1226,7 +1226,7 @@ int freerdp_client_settings_parse_command_line_arguments(rdpSettings* settings,
continue;
length = p2 - p;
settings->ServerHostname = (char*) malloc(length);
settings->ServerHostname = (char*) calloc(length, sizeof(char));
strncpy(settings->ServerHostname, p+1, length-1);
if (*(p2 + 1) == ':')
{