]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
conf: s/LXC_NUMSTRLEN64/INTTYPE_TO_STRLEN()/
authorChristian Brauner <christian.brauner@ubuntu.com>
Sat, 25 Aug 2018 10:28:32 +0000 (12:28 +0200)
committerChristian Brauner <christian.brauner@ubuntu.com>
Tue, 28 Aug 2018 18:22:24 +0000 (20:22 +0200)
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
src/lxc/conf.c

index 30663312037e961ddc7a7527b9b1df05712ea5a4..ba4ac502ae654f2e8156ec8dfd1ddac4c6b12bae 100644 (file)
@@ -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;