conf: s/LXC_NUMSTRLEN64/INTTYPE_TO_STRLEN()/

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
This commit is contained in:
Christian Brauner 2018-08-25 12:28:32 +02:00
parent 9d6ade4ace
commit d33968ade3
No known key found for this signature in database
GPG Key ID: 8EB056D53EECB12D

View File

@ -2952,7 +2952,7 @@ int lxc_map_ids(struct lxc_list *idmap, pid_t pid)
* + * +
* strlen(" ") = 1 * strlen(" ") = 1
* + * +
* LXC_NUMSTRLEN64 * INTTYPE_TO_STRLEN(uint32_t)
* + * +
* strlen(" ") = 1 * strlen(" ") = 1
* *
@ -2960,7 +2960,7 @@ int lxc_map_ids(struct lxc_list *idmap, pid_t pid)
* LXC_IDMAPLEN bytes available for our the {g,u]id mapping. * LXC_IDMAPLEN bytes available for our the {g,u]id mapping.
*/ */
int ret = 0, gidmap = 0, uidmap = 0; int ret = 0, gidmap = 0, uidmap = 0;
char mapbuf[9 + 1 + LXC_NUMSTRLEN64 + 1 + LXC_IDMAPLEN] = {0}; char mapbuf[9 + 1 + INTTYPE_TO_STRLEN(uint32_t) + 1 + LXC_IDMAPLEN] = {0};
bool had_entry = false, use_shadow = false; bool had_entry = false, use_shadow = false;
int hostuid, hostgid; int hostuid, hostgid;