ref: d24f3a5a58d30f4d08224323fb802a6950d7657a
parent: fa089912eb3411f19654138c6a70eb20c302325e
author: Quentin Rameau <quinq@fifth.space>
date: Mon May 30 07:20:59 EDT 2016
[driver] make sure tools array is the size of tool number
--- a/driver/posix/scc.c
+++ b/driver/posix/scc.c
@@ -30,7 +30,7 @@
char name[8];
int in, out;
pid_t pid;
-} tools[] = {+} tools[NR_TOOLS] = { [CC1] = { .name = "cc1", }, [CC2] = { .name = "cc2", }, [QBE] = { .name = "qbe", .bin = "qbe", .cmd = "qbe", },--
⑨