diff options
author | cinap_lenrek <cinap_lenrek@felloff.net> | 2014-03-02 21:08:48 +0100 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2014-03-02 21:08:48 +0100 |
commit | 2750062701e8dd84b78d8619f164769be7e0a5aa (patch) | |
tree | ebb512359df1a4a42e610764d21722ec8de4107e | |
parent | 9405f4c95f229a173c6f430c12d96ac2c19e8626 (diff) | |
download | plan9front-2750062701e8dd84b78d8619f164769be7e0a5aa.tar.xz |
cc: correct out-of-bounds references in funct.c (thanks charles forsyth)
-rw-r--r-- | sys/src/cmd/cc/funct.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/src/cmd/cc/funct.c b/sys/src/cmd/cc/funct.c index 3a236be31..f794c6a62 100644 --- a/sys/src/cmd/cc/funct.c +++ b/sys/src/cmd/cc/funct.c @@ -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; |