commit 879eb623bed4ef4b5dc1d430ca21d32cfcf59701
Author: Oswald Buddenhagen <[email protected]>
Date: Sun Nov 6 17:23:17 2016 +0100
mark string_list_t as packed
otherwise we'll regularly over-allocate due to the struct's stride.
src/common.h | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
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 );
------------------------------------------------------------------------------
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today.http://sdm.link/intel
_______________________________________________
isync-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/isync-devel