mirror of https://github.com/xzeldon/htop.git
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