mirror of
https://git.proxmox.com/git/mirror_lxc
synced 2025-08-15 04:09:46 +00:00
lxccontainer: s/LXC_NUMSTRLEN64/INTTYPE_TO_STRLEN()/
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
This commit is contained in:
parent
2955a58ab4
commit
da07fe61fc
@ -1037,10 +1037,10 @@ static bool do_lxcapi_start(struct lxc_container *c, int useinit, char * const a
|
|||||||
*/
|
*/
|
||||||
if (c->pidfile) {
|
if (c->pidfile) {
|
||||||
int ret, w;
|
int ret, w;
|
||||||
char pidstr[LXC_NUMSTRLEN64];
|
char pidstr[INTTYPE_TO_STRLEN(int)];
|
||||||
|
|
||||||
w = snprintf(pidstr, LXC_NUMSTRLEN64, "%d", (int)lxc_raw_getpid());
|
w = snprintf(pidstr, INTTYPE_TO_STRLEN(int), "%d", (int)lxc_raw_getpid());
|
||||||
if (w < 0 || (size_t)w >= LXC_NUMSTRLEN64) {
|
if (w < 0 || (size_t)w >= INTTYPE_TO_STRLEN(int)) {
|
||||||
free_init_cmd(init_cmd);
|
free_init_cmd(init_cmd);
|
||||||
lxc_free_handler(handler);
|
lxc_free_handler(handler);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user