diff options
Diffstat (limited to 'src/pkg/runtime/runtime.c')
| -rw-r--r-- | src/pkg/runtime/runtime.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pkg/runtime/runtime.c b/src/pkg/runtime/runtime.c index 31b853c87a..98c9edda41 100644 --- a/src/pkg/runtime/runtime.c +++ b/src/pkg/runtime/runtime.c @@ -111,7 +111,7 @@ runtime·goargs(void) if(Windows) return; - s = runtime·malloc(argc*sizeof s[0]); + s = runtime·mallocgc(argc*sizeof s[0], nil, 0); for(i=0; i<argc; i++) s[i] = runtime·gostringnocopy(argv[i]); os·Args.array = (byte*)s; @@ -128,7 +128,7 @@ runtime·goenvs_unix(void) for(n=0; argv[argc+1+n] != 0; n++) ; - s = runtime·malloc(n*sizeof s[0]); + s = runtime·mallocgc(n*sizeof s[0], nil, 0); for(i=0; i<n; i++) s[i] = runtime·gostringnocopy(argv[argc+1+i]); syscall·envs.array = (byte*)s; |
