From 879eb623bed4ef4b5dc1d430ca21d32cfcf59701 Mon Sep 17 00:00:00 2001 From: Oswald Buddenhagen Date: Sun, 6 Nov 2016 17:23:17 +0100 Subject: [PATCH] mark string_list_t as packed otherwise we'll regularly over-allocate due to the struct's stride. --- src/common.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common.h b/src/common.h index 7138a6e..00fc415 100644 --- a/src/common.h +++ b/src/common.h @@ -110,7 +110,7 @@ void flushn( void ); typedef struct string_list { struct string_list *next; char string[1]; -} string_list_t; +} ATTR_PACKED(void *) string_list_t; void add_string_list_n( string_list_t **list, const char *str, int len ); void add_string_list( string_list_t **list, const char *str );