mirror of
https://git.proxmox.com/git/mirror_lxc
synced 2025-08-09 03:35:20 +00:00
string_utils: use UINT64_MAX macro
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
This commit is contained in:
parent
1f207a5cd9
commit
62fc84030b
@ -679,7 +679,7 @@ int lxc_safe_uint64(const char *numstr, uint64_t *converted, int base)
|
|||||||
|
|
||||||
errno = 0;
|
errno = 0;
|
||||||
u = strtoull(numstr, &err, base);
|
u = strtoull(numstr, &err, base);
|
||||||
if (errno == ERANGE && u == ULLONG_MAX)
|
if (errno == ERANGE && u == UINT64_MAX)
|
||||||
return -ERANGE;
|
return -ERANGE;
|
||||||
|
|
||||||
if (err == numstr || *err != '\0')
|
if (err == numstr || *err != '\0')
|
||||||
|
Loading…
Reference in New Issue
Block a user