]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
string_utils: s/LXC_NUMSTRLEN64/INTTYPE_TO_STRLEN()/
authorChristian Brauner <christian.brauner@ubuntu.com>
Sat, 25 Aug 2018 10:22:53 +0000 (12:22 +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/string_utils.c

index 74cea3c704a4f1677b7e86890e4fa4ac731f7126..0a1e3e3bf6a07e8591dfb2d356ce0699744002d9 100644 (file)
@@ -43,6 +43,7 @@
 
 #include "log.h"
 #include "lxclock.h"
+#include "macro.h"
 #include "namespace.h"
 #include "parse.h"
 #include "string_utils.h"
@@ -860,7 +861,7 @@ int parse_byte_size_string(const char *s, int64_t *converted)
        long long int conv;
        int64_t mltpl, overflow;
        char *end;
-       char dup[LXC_NUMSTRLEN64 + 2];
+       char dup[INTTYPE_TO_STRLEN(int64_t)];
        char suffix[3] = {0};
 
        if (!s || !strcmp(s, ""))