diff options
| author | ruki <[email protected]> | 2015-07-02 14:54:00 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2015-07-02 14:54:00 +0800 |
| commit | f69c00a7ddcb835fe52169fa9b7e097680fba5c1 (patch) | |
| tree | fdbe29e9037607dd09335a117c730cc3f07a04d1 /core/src/xmake/os | |
| parent | c6cc4e543cbfc3e23761ebb4cc0f825055928ed2 (diff) | |
update tbox and fix copy file bug
Diffstat (limited to 'core/src/xmake/os')
| -rwxr-xr-x | core/src/xmake/os/setenv.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/src/xmake/os/setenv.c b/core/src/xmake/os/setenv.c index 1dcf125ce..13fb991e2 100755 --- a/core/src/xmake/os/setenv.c +++ b/core/src/xmake/os/setenv.c @@ -81,7 +81,7 @@ tb_int_t xm_os_setenv(lua_State* lua) tb_size_t size = tb_min(p - b, sizeof(data) - 1); // copy it - tb_strlcpy(data, b, size); + tb_strncpy(data, b, size); data[size] = '\0'; // have been not inserted? |
