mirror of
https://git.proxmox.com/git/mirror_lxc
synced 2025-07-27 12:37:35 +00:00
string_utils: s/LXC_NUMSTRLEN64/INTTYPE_TO_STRLEN()/
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
This commit is contained in:
parent
8335fd40ef
commit
f1eacafbc8
@ -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, ""))
|
||||
|
Loading…
Reference in New Issue
Block a user