Skip to content

Commit 0bd675a

Browse files
committed
Fix format specifier for size_t
Signed-off-by: Mrunal Patel <[email protected]>
1 parent aee3f6f commit 0bd675a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libcontainer/nsenter/nsexec.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ static void nl_parse(int fd, struct nlconfig_t *config)
286286
size = NLMSG_PAYLOAD(&hdr, 0);
287287
current = data = malloc(size);
288288
if (!data)
289-
bail("failed to allocate %d bytes of memory for nl_payload", size);
289+
bail("failed to allocate %zu bytes of memory for nl_payload", size);
290290

291291
len = read(fd, data, size);
292292
if (len != size)

0 commit comments

Comments
 (0)