From abe289d88e4356b169c74c1f4523c7ab3d7a63ef Mon Sep 17 00:00:00 2001 From: charles forsyth Date: Sun, 2 Mar 2014 11:49:25 +0000 Subject: f->sym is an array of pointers: need nelem not sizeof --- utils/cc/funct.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'utils/cc') 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; osym); o++) + for(o=0; osym); o++) f->sym[o] = S; t->funct = f; -- cgit v1.2.3