mirror of
https://github.com/opencontainers/runc.git
synced 2026-07-11 06:03:57 +08:00
Merge pull request #989 from mrunalp/fix_format
Fix format specifier for size_t
This commit is contained in:
@@ -286,7 +286,7 @@ static void nl_parse(int fd, struct nlconfig_t *config)
|
||||
size = NLMSG_PAYLOAD(&hdr, 0);
|
||||
current = data = malloc(size);
|
||||
if (!data)
|
||||
bail("failed to allocate %d bytes of memory for nl_payload", size);
|
||||
bail("failed to allocate %zu bytes of memory for nl_payload", size);
|
||||
|
||||
len = read(fd, data, size);
|
||||
if (len != size)
|
||||
|
||||
Reference in New Issue
Block a user