Merge pull request #989 from mrunalp/fix_format

Fix format specifier for size_t
This commit is contained in:
Michael Crosby 2016-08-17 11:54:33 -07:00 committed by GitHub
commit 6df383c2f8
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)