mirror of
https://github.com/reactos/wine.git
synced 2025-02-04 11:08:48 +00:00
Fixed off-by-one error in string allocation.
This commit is contained in:
parent
5e9dab58da
commit
45fccb8c0c
@ -156,7 +156,7 @@ static void remove_options( char *argv[], int pos, int count, int inherit )
|
||||
for (i = 0; i < count; i++) len += strlen(argv[pos+i]) + 1;
|
||||
if (inherit_str)
|
||||
{
|
||||
if (!(inherit_str = realloc( inherit_str, strlen(inherit_str) + len )))
|
||||
if (!(inherit_str = realloc( inherit_str, strlen(inherit_str) + 1 + len )))
|
||||
out_of_memory();
|
||||
strcat( inherit_str, " " );
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user