mirror of
https://git.proxmox.com/git/mirror_lxc
synced 2025-08-14 19:19:47 +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) {
|
||||
int ret, w;
|
||||
char pidstr[LXC_NUMSTRLEN64];
|
||||
char pidstr[INTTYPE_TO_STRLEN(int)];
|
||||
|
||||
w = snprintf(pidstr, LXC_NUMSTRLEN64, "%d", (int)lxc_raw_getpid());
|
||||
if (w < 0 || (size_t)w >= LXC_NUMSTRLEN64) {
|
||||
w = snprintf(pidstr, INTTYPE_TO_STRLEN(int), "%d", (int)lxc_raw_getpid());
|
||||
if (w < 0 || (size_t)w >= INTTYPE_TO_STRLEN(int)) {
|
||||
free_init_cmd(init_cmd);
|
||||
lxc_free_handler(handler);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user