swc

Unnamed repository; edit this file 'description' to name the repository.
git clone git://git.nihaljere.xyz/swc
Log | Files | Refs | README | LICENSE

commit b3f02430a7678ddc720837b3c08841c17d749cf6
parent e88d5f1d490ce3c4108c023d17f0ca32a24c4cd1
Author: Michael Forney <mforney@mforney.org>
Date:   Sat, 30 Apr 2016 03:02:46 -0700

cursor: Avoid use of zero-size array

Diffstat:
Mcursor/convert_font.c | 10+++++-----
1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/cursor/convert_font.c b/cursor/convert_font.c @@ -80,7 +80,7 @@ struct pcf_header { int32_t format; int32_t size; int32_t offset; - } tables[0]; + } tables[]; }; struct compressed_metrics { @@ -105,11 +105,11 @@ 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; }; }; @@ -117,13 +117,13 @@ struct metrics { 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