Replace strlcpy() by safer String_safeStrncpy()

This commit is contained in:
fraggerfox 2021-04-24 09:25:19 +05:30 committed by BenBE
parent 3414d3b2d4
commit 9b6cecfede
1 changed files with 1 additions and 1 deletions

View File

@ -282,7 +282,7 @@ char* Platform_getProcessEnv(pid_t pid) {
env = xRealloc(env, capacity); env = xRealloc(env, capacity);
} }
strlcpy(env + size, *p, len); String_safeStrncpy(env + size, *p, len);
size += len; size += len;
} }