isync

mailbox synchronization program
git clone https://git.code.sf.net/p/isync/isync
Log | Files | Refs | README | LICENSE

commit 879eb623bed4ef4b5dc1d430ca21d32cfcf59701
parent 4db64967c9593ce4f70f62af81bf4ecf2858c16f
Author: Oswald Buddenhagen <ossi@users.sf.net>
Date:   Sun,  6 Nov 2016 17:23:17 +0100

mark string_list_t as packed

otherwise we'll regularly over-allocate due to the struct's stride.

Diffstat:
Msrc/common.h | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 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 );