Skip to content

Commit

Permalink
cursor: Avoid use of zero-size array
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelforney committed Apr 30, 2016
1 parent e88d5f1 commit b3f0243
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions cursor/convert_font.c
Expand Up @@ -80,7 +80,7 @@ struct pcf_header {
int32_t format;
int32_t size;
int32_t offset;
} tables[0];
} tables[];
};

struct compressed_metrics {
Expand All @@ -105,25 +105,25 @@ struct metrics {
union {
struct {
int16_t count;
struct compressed_metrics compressed_metrics[0];
struct compressed_metrics compressed_metrics[];
} compressed;
struct {
int32_t count;
struct uncompressed_metrics uncompressed_metrics[0];
struct uncompressed_metrics uncompressed_metrics[];
} uncompressed;
};
};

struct glyph_names {
int32_t format;
int32_t glyph_count;
int32_t offsets[0];
int32_t offsets[];
};

struct bitmaps {
int32_t format;
int32_t glyph_count;
int32_t offsets[0];
int32_t offsets[];
};

static void
Expand Down

0 comments on commit b3f0243

Please sign in to comment.