From 9b6cecfedee33e6632897d21e9c85b6dffba3c08 Mon Sep 17 00:00:00 2001 From: fraggerfox Date: Sat, 24 Apr 2021 09:25:19 +0530 Subject: [PATCH] Replace strlcpy() by safer String_safeStrncpy() --- netbsd/Platform.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }