cc: correct out-of-bounds references in funct.c (thanks charles forsyth)
This commit is contained in:
parent
9405f4c95f
commit
2750062701
1 changed files with 1 additions and 1 deletions
|
@ -238,7 +238,7 @@ dclfunct(Type *t, Sym *s)
|
|||
goto bad;
|
||||
|
||||
f = alloc(sizeof(*f));
|
||||
for(o=0; o<sizeof(f->sym); o++)
|
||||
for(o=0; o<nelem(f->sym); o++)
|
||||
f->sym[o] = S;
|
||||
|
||||
t->funct = f;
|
||||
|
|
Loading…
Reference in a new issue