Re: Memory usage from "George" at Aug 21, 97 12:09:52 pm

From: Andrew Helm (ashe@IGLOU.COM)
Date: 08/21/97


> PARANOID_BUFFER setting initializes it to all 0's already.  Many functions
> do all their output and then return so the strlen was the first step.
> (do_score, get_line, etc)

This reminds me... I kept getting a "SYSERR: BUF: Buffer is not NULL as
it ought to be!" error. I looked through the code and noticed you
use malloc() in the malloc_buffer() function, in buffer.c, around
line 365 to assign memory for new_buf->data. I changed it to calloc()
and the error went away.


     +------------------------------------------------------------+
     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     | http://democracy.queensu.ca/~fletcher/Circle/list-faq.html |
     +------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 12/08/00 PST