Fix format specifier for size_t
Signed-off-by: Mrunal Patel <mrunalp@gmail.com>
This commit is contained in:
parent
aee3f6ff5a
commit
0bd675a56c
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue