mirror of
https://github.com/xzeldon/htop.git
synced 2024-12-24 15:15:44 +00:00
Replace strlcpy() by safer String_safeStrncpy()
This commit is contained in:
parent
3414d3b2d4
commit
9b6cecfede
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user