mirror of
https://github.com/xzeldon/htop.git
synced 2025-07-10 03:04:36 +03:00
Replace strlcpy() by safer String_safeStrncpy()
This commit is contained in:
@ -282,7 +282,7 @@ char* Platform_getProcessEnv(pid_t pid) {
|
|||||||
env = xRealloc(env, capacity);
|
env = xRealloc(env, capacity);
|
||||||
}
|
}
|
||||||
|
|
||||||
strlcpy(env + size, *p, len);
|
String_safeStrncpy(env + size, *p, len);
|
||||||
size += len;
|
size += len;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user