From 2da1e199d6431d239a2ce5e4c2d55f128545cb44 Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Sat, 5 Mar 2011 21:34:57 +0000 Subject: Make struct char_data packed svn path=/trunk/tools/ttf2f/; revision=11915 --- src/outlines.c | 1 + src/outlines.h | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/outlines.c b/src/outlines.c index 962042c..14dab36 100644 --- a/src/outlines.c +++ b/src/outlines.c @@ -112,6 +112,7 @@ ttf2f_result outlines_write(const char *savein, const char *name, current_chunk_offset += 42 + strlen(ctx->metrics->name_full) + strlen(ctx->metrics->name_copyright); + /* Word align */ while (current_chunk_offset % 4) { if (fputc(0x0, output) == EOF) goto error_write; current_chunk_offset++; diff --git a/src/outlines.h b/src/outlines.h index 4b67ea4..03d8a58 100644 --- a/src/outlines.h +++ b/src/outlines.h @@ -38,7 +38,7 @@ struct char_data { char flags; char x0y0[3]; char xsys[3]; -}; +} __attribute__((packed)); #define CHAR_12BIT_COORDS 0x01 #define CHAR_1BPP 0x02 -- cgit v1.2.3