fixed minor bug: report on used memory was wrong
authorceriel <none@none>
Fri, 15 Apr 1988 16:05:05 +0000 (16:05 +0000)
committerceriel <none@none>
Fri, 15 Apr 1988 16:05:05 +0000 (16:05 +0000)
util/ncgg/output.c

index 0b0f546..b836f45 100644 (file)
@@ -877,5 +877,5 @@ statistics() {
        used("Pat bytes",npatbytes+1,MAXPATBYTES);
        if (tabledebug)
                used("Source lines",maxline,MAXSOURCELINES);
-       fprintf(stderr,"%ldK heap used\n",((long) (sbrk(0)-end+1023))/1024);
+       fprintf(stderr,"%ldK heap used\n",((long) (sbrk(0)-(char *) &end+1023))/1024);
 }