commit a671626515d93dbe37b89ecb749ccf4b8c8a25f2
parent a11839f8071c98ec980ac43d51431044f2ea6f6b
Author: Quentin Rameau <quinq@fifth.space>
Date: Mon, 30 May 2016 11:20:59 +0200
[driver] make sure tools array is the size of tool number
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/driver/posix/scc.c b/driver/posix/scc.c
@@ -30,7 +30,7 @@ static struct {
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", },