From aed02f0fedf56f6684cb98e33d0c616d4f80e81f Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sat, 11 Oct 2008 20:15:43 -0700 Subject: tag_item: avoid wasting space when struct is unpackable Not all compilers support struct packing, and those that don't shouldn't be punished for it. --- src/tag.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/tag.h') diff --git a/src/tag.h b/src/tag.h index 744b82e83..58df5b3d1 100644 --- a/src/tag.h +++ b/src/tag.h @@ -42,7 +42,7 @@ extern const char *mpdTagItemKeys[]; struct tag_item { enum tag_type type; - char value[1]; + char value[mpd_sizeof_str_flex_array]; } mpd_packed; struct mpd_tag { -- cgit v1.2.3