From: Jeff King Date: Mon, 22 Feb 2016 22:44:32 +0000 (-0500) Subject: convert trivial cases to FLEX_ARRAY macros X-Git-Tag: v2.8.0-rc0~19^2~12 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/96ffc06f72f693d80f05059a1f0e5ca9007d5f1b?hp=96ffc06f72f693d80f05059a1f0e5ca9007d5f1b 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: Jeff King Signed-off-by: Junio C Hamano ---