summaryrefslogtreecommitdiffstats
path: root/netbsd
diff options
context:
space:
mode:
authorfraggerfox <santhosh.raju@gmail.com>2021-04-24 09:25:19 +0530
committerBenBE <BenBE@geshi.org>2021-06-26 12:18:37 +0200
commit9b6cecfedee33e6632897d21e9c85b6dffba3c08 (patch)
treec0f20adcdfe95d5aa1eeb2105f3bc632617d713f /netbsd
parent3414d3b2d443fd5f84a39ee3b5879fed5d3e929a (diff)
Replace strlcpy() by safer String_safeStrncpy()
Diffstat (limited to 'netbsd')
-rw-r--r--netbsd/Platform.c2
1 files changed, 1 insertions, 1 deletions
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;
}

© 2014-2024 Faster IT GmbH | imprint | privacy policy