Fix format specifier for size_t

Signed-off-by: Mrunal Patel <mrunalp@gmail.com>
This commit is contained in:
Mrunal Patel 2016-08-17 11:31:10 -07:00
parent aee3f6ff5a
commit 0bd675a56c
1 changed files with 1 additions and 1 deletions

View File

@ -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)