Skip to content
Snippets Groups Projects
Commit 96ffc06f authored by Jeff King's avatar Jeff King Committed by Junio C Hamano
Browse files

convert trivial cases to FLEX_ARRAY macros


Using FLEX_ARRAY macros reduces the amount of manual
computation size we have to do. It also ensures we don't
overflow size_t, and it makes sure we write the same number
of bytes that we allocated.

Signed-off-by: default avatarJeff King <peff@peff.net>
Signed-off-by: default avatarJunio C Hamano <gitster@pobox.com>
parent 3733e694
Branches
Tags
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment