From 4dfaeeb6326cbe3ffebb3355b10895b6939c53d5 Mon Sep 17 00:00:00 2001 From: ruki Date: Thu, 12 Aug 2021 00:53:46 +0800 Subject: improve process.open --- core/src/xmake/process/open.c | 2 +- core/src/xmake/process/openv.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/core/src/xmake/process/open.c b/core/src/xmake/process/open.c index 82ea5b94f..c35d9e3bf 100644 --- a/core/src/xmake/process/open.c +++ b/core/src/xmake/process/open.c @@ -56,7 +56,7 @@ tb_int_t xm_process_open(lua_State* lua) // get option arguments tb_size_t envn = 0; - tb_char_t const* envs[256] = {0}; + tb_char_t const* envs[1024] = {0}; tb_char_t const* inpath = tb_null; tb_char_t const* outpath = tb_null; tb_char_t const* errpath = tb_null; diff --git a/core/src/xmake/process/openv.c b/core/src/xmake/process/openv.c index 02ccb49e7..3ec887f1e 100644 --- a/core/src/xmake/process/openv.c +++ b/core/src/xmake/process/openv.c @@ -98,7 +98,7 @@ tb_int_t xm_process_openv(lua_State* lua) // get option arguments tb_size_t envn = 0; - tb_char_t const* envs[256] = {0}; + tb_char_t const* envs[1024] = {0}; tb_char_t const* inpath = tb_null; tb_char_t const* outpath = tb_null; tb_char_t const* errpath = tb_null; -- cgit v1.3.1