[hackers] [scc] [driver] make sure tools array is the size of tool number || Quentin Rameau
commit a671626515d93dbe37b89ecb749ccf4b8c8a25f2
Author: Quentin Rameau <quinq_AT_fifth.space>
AuthorDate: Mon May 30 11:20:59 2016 +0200
Commit: Quentin Rameau <quinq_AT_fifth.space>
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
_AT_@ -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", },
Received on Mon May 30 2016 - 11:22:43 CEST
This archive was generated by hypermail 2.3.0
: Mon May 30 2016 - 11:24:16 CEST