Fix regression introduced in 0b7f9d4

This fixes problems with command line parsing.
This commit is contained in:
Bernhard Miklautz 2015-04-02 22:53:45 +02:00
parent 121ea23595
commit 0615c13dbb

View File

@ -547,14 +547,13 @@ static char** freerdp_command_line_parse_comma_separated_values_offset(char* lis
char** t;
p = freerdp_command_line_parse_comma_separated_values(list, count);
if (!p)
return NULL;
t = (char**) realloc(p, sizeof(char*) * (*count + 1));
if (!t)
return NULL;
p = t;
MoveMemory(&p[1], p, sizeof(char*) * *count);
if (count > 0)
MoveMemory(&p[1], p, sizeof(char*) * *count);
(*count)++;
return p;