From 09ed33d12d7f92bf7bb4d8e670804b73d2bc4820 Mon Sep 17 00:00:00 2001 From: ceriel Date: Fri, 15 Apr 1988 16:05:05 +0000 Subject: [PATCH] fixed minor bug: report on used memory was wrong --- util/ncgg/output.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util/ncgg/output.c b/util/ncgg/output.c index 0b0f54612..b836f4507 100644 --- a/util/ncgg/output.c +++ b/util/ncgg/output.c @@ -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); }