| commit | 45fccb8c0c04c7d3b0746d816e7ee5e20f56fd65 | [log] [tgz] |
|---|---|---|
| author | Alexandre Julliard <julliard@winehq.org> | Wed Jun 07 02:03:54 2000 +0000 |
| committer | Alexandre Julliard <julliard@winehq.org> | Wed Jun 07 02:03:54 2000 +0000 |
| tree | 207083772b6e369c5c08d264e103b69fea44a0db | |
| parent | 5e9dab58da410230903cbe7e4ce2f863332e37e9 [diff] |
Fixed off-by-one error in string allocation.
diff --git a/misc/options.c b/misc/options.c index aac9e21..ea5729a 100644 --- a/misc/options.c +++ b/misc/options.c
@@ -156,7 +156,7 @@ 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, " " ); }