From 0dd5e316338f992984c7ac77ce9b2657a77ece7b Mon Sep 17 00:00:00 2001 From: Curtis McEnroe Date: Sun, 8 Apr 2018 15:44:35 -0400 Subject: static_assert PNG header size in pngo and glitch --- bin/glitch.c | 1 + 1 file changed, 1 insertion(+) (limited to 'bin/glitch.c') diff --git a/bin/glitch.c b/bin/glitch.c index ea9c083d..3a3bfde5 100644 --- a/bin/glitch.c +++ b/bin/glitch.c @@ -127,6 +127,7 @@ static struct PACKED { uint8_t filter; uint8_t interlace; } header; +static_assert(13 == sizeof(header), "header size"); static size_t lineSize(void) { switch (header.color) { -- cgit 1.4.1