mark string_list_t as packed

otherwise we'll regularly over-allocate due to the struct's stride.
This commit is contained in:
Oswald Buddenhagen 2016-11-06 17:23:17 +01:00
parent 4db64967c9
commit 879eb623be

View File

@ -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 );