diff options
| author | charles forsyth <charles.forsyth@gmail.com> | 2014-03-02 11:49:25 +0000 |
|---|---|---|
| committer | charles forsyth <charles.forsyth@gmail.com> | 2014-03-02 11:49:25 +0000 |
| commit | abe289d88e4356b169c74c1f4523c7ab3d7a63ef (patch) | |
| tree | a1b48e9a67bd26bc300e782e25c41c9c799e6b18 /utils/cc/funct.c | |
| parent | d04a1cabb498e244b802f08427847789c1ce95f0 (diff) | |
f->sym is an array of pointers: need nelem not sizeof
Diffstat (limited to 'utils/cc/funct.c')
| -rw-r--r-- | utils/cc/funct.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/cc/funct.c b/utils/cc/funct.c index 3a236be3..f794c6a6 100644 --- a/utils/cc/funct.c +++ b/utils/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; |
