X-Git-Url: http://j8takagi.net/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Flabel.c;h=8d3aa4b366e45cdc474db1d29cd2a640cbe95bbf;hb=e24285f0509319319aef28a188b7c01ba7e22bf1;hp=120223c53908681341d83730f9bcd56ea0a9e675;hpb=e0de529cf2de73a298288fd294b24b964abdba34;p=YACASL2.git diff --git a/src/label.c b/src/label.c index 120223c..8d3aa4b 100644 --- a/src/label.c +++ b/src/label.c @@ -75,8 +75,8 @@ int compare_adr(const void *a, const void *b) void printlabel() { int i, asize = 0; - LABELTAB *np = malloc(sizeof(LABELTAB *)); - LABELARRAY **ar = malloc(labelcnt * sizeof(LABELARRAY **)); + LABELTAB *np; + LABELARRAY *ar[labelcnt]; for(i = 0; i < LABELTABSIZE; i++) { for(np = labels[i]; np != NULL; np = np->next) {