commit a671626515d93dbe37b89ecb749ccf4b8c8a25f2
Author:     Quentin Rameau <[email protected]>
AuthorDate: Mon May 30 11:20:59 2016 +0200
Commit:     Quentin Rameau <[email protected]>
CommitDate: Mon May 30 11:20:59 2016 +0200

    [driver] make sure tools array is the size of tool number

diff --git a/driver/posix/scc.c b/driver/posix/scc.c
index eec84cb..a5d8ef6 100644
--- 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", },

Reply via email to