From: Christian Brauner Date: Sat, 25 Aug 2018 10:22:53 +0000 (+0200) Subject: string_utils: s/LXC_NUMSTRLEN64/INTTYPE_TO_STRLEN()/ X-Git-Tag: lxc-3.1.0~127^2~10 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f1eacafbc83aade26bd79b82fc93fe9448051f92;p=thirdparty%2Flxc.git string_utils: s/LXC_NUMSTRLEN64/INTTYPE_TO_STRLEN()/ Signed-off-by: Christian Brauner --- diff --git a/src/lxc/string_utils.c b/src/lxc/string_utils.c index 74cea3c70..0a1e3e3bf 100644 --- a/src/lxc/string_utils.c +++ b/src/lxc/string_utils.c @@ -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, ""))