diff --git a/netbsd/Platform.c b/netbsd/Platform.c index 7c7ec03f..ef70631d 100644 --- a/netbsd/Platform.c +++ b/netbsd/Platform.c @@ -282,7 +282,7 @@ char* Platform_getProcessEnv(pid_t pid) { env = xRealloc(env, capacity); } - strlcpy(env + size, *p, len); + String_safeStrncpy(env + size, *p, len); size += len; }