From: Christian Brauner Date: Sat, 25 Aug 2018 10:28:32 +0000 (+0200) Subject: conf: s/LXC_NUMSTRLEN64/INTTYPE_TO_STRLEN()/ X-Git-Tag: lxc-3.1.0~127^2~7 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d33968ade38d33826d08a701d686e9a825f8fadf;p=thirdparty%2Flxc.git conf: s/LXC_NUMSTRLEN64/INTTYPE_TO_STRLEN()/ Signed-off-by: Christian Brauner --- diff --git a/src/lxc/conf.c b/src/lxc/conf.c index 306633120..ba4ac502a 100644 --- a/src/lxc/conf.c +++ b/src/lxc/conf.c @@ -2952,7 +2952,7 @@ int lxc_map_ids(struct lxc_list *idmap, pid_t pid) * + * strlen(" ") = 1 * + - * LXC_NUMSTRLEN64 + * INTTYPE_TO_STRLEN(uint32_t) * + * 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. */ 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; int hostuid, hostgid;