Fixed size of command line value string.

This commit is contained in:
Armin Novak 2018-08-27 09:15:50 +02:00
parent fad20be6e6
commit 456b95cbfc

View File

@ -592,7 +592,7 @@ static char** freerdp_command_line_parse_comma_separated_values_ex(const char* n
{
char* dst = (char*)&p[1];
p[0] = dst;
sprintf_s(dst, len, "%s", name);
sprintf_s(dst, len + 1, "%s", name);
*count = 1;
return p;
}