소스 검색

mark string_list_t as packed

otherwise we'll regularly over-allocate due to the struct's stride.
Oswald Buddenhagen 8 년 전
부모
커밋
879eb623be
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/common.h

+ 1 - 1
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 );